List of top 25 most frequently asked ejb interview questions and answers pdf download free
EJB Interview Questions and Answers List
- Are enterprise beans allowed to use Thread.sleep()?
- Is it possible to write two EJB’s that share the same Remote and Home interfaces, and have different bean classes?
- Is it possible to specify multiple JNDI names when deploying an EJB?
- Is there any way to force an Entity Bean to store itself to the db?
- I am developing a BMP Entity bean. I have noticed that whenever the create method is invoked, the ejbLoad() and the ejbStore() methods are also invoked. I feel that once my database insert is done, having to do a select and update SQL queries is major overhead. is this behavior typical of all EJB containers? Is there any way to suppress these invocations?
- Can an EJB send asynchronous notifications to its clients?
- How can I access EJB from ASP?
- Is there a guarantee of uniqueness for entity beans?
- How do the six transaction attributes map to isolation levels like “dirty read� Will an attribute like “Required†lock out other readers until I’m finished updating?
- I have created a remote reference to an EJB in FirstServlet. Can I put the reference in a servlet session and use that in SecondServlet?
- Can the primary key in the entity bean be a Java primitive type such as int?
- What’s new in the EJB 2.0 specification?
- How many types of protocol implementations does RMI have?
- What is the need of Remote and Home interfaces. Why can’t there be one?
- What is the difference between Java Beans and EJB?
- Question With regard to Entity Beans, what happens if both my EJB Server and Database crash, what will happen to unsaved changes?
- Question Can you control when passivation occurs?
- Does RMI-IIOP support dynamic downloading of classes?
- Does EJB 1.1 support mandate the support for RMI-IIOP ? What is the meaning of “the client API must support the Java RMI-IIOP programming model for portability, but the underlying protocol can be anything†?
- The EJB specification says that we cannot use Bean Managed Transaction in Entity Beans. Why?
- Can I invoke Runtime.gc() in an EJB?
- What is clustering? What are the different algorithms used for clustering?
- What is the advantage of using Entity bean for database operations, over directly using JDBC API to do database operations? When would I use one over the other?
- What is the role of serialization in EJB?
- What is EJB QL?