-
-
Need of EJB
What is the need of EJB?
-
What is the difference between CMP and BMP
Answered by Jey on 2005-05-08 11:32:16: CMP means Container Managed Persistence. When we write CMP bean , we dont need to write any JDBC code to connect to Database. The container will take care of connection our enitty beans fields with database. The Container manages the persistence of the bean. Absolutely no database access code is written inside the bean class. BMP means Bean Managed Persistence....
-
Can I invoke Runtime.gc() in an EJB
Answer posted by Mohan on 2005-05-21 19:26:48: No
-
-
-
-
-
-
-
-
Distributed Object using RMI-IIOP
How are parameters passed to a method of a distributed object using RMI-IIOP?
-
-
What is Entity Bean. What are the various types of Entity Bean
Answered by Jey on 2005-05-08 12:47:06: Entity bean represents the real data which is stored in the persistent storage like Database or file system. For example, There is a table in Database called Credit_card. This table contains credit_card_no,first_name, last_name, ssn as colums and there are 100 rows in the table. Here each row is represented by one instance of the entity bean and it is found by...
-
What are the call back methods in Entity bean
Answered by Jey Ramasamy on 2005-05-08 19:51:04: 1. setEntityContext() 2. ejbCreate() 3. ejbPostCreate() 4. ejbActivate() 5. ejbPassivate() 6. ejbRemove() 7. unsetEntityContext()
-
-
What is local interface. How values will be passed
Answered by Jey on 2005-05-08 12:33:35: If Client and EJB classes are in the same machine ( Same JVM) then we can use Local linterface instead of Remote interface. Since Client and EJB are in same JVM, values are passed by referance.
-
-
What is the difference between ejbCreate() and ejbPostCreate()
Answered by Jey on 2005-05-08 11:14:33: Session and Message Driven Bean will have only ejbCreate() method and no ejbPostCreate() method. Entity bean will have both ejbCreate() and ejbPostCreate() methods. The ejbPostCreate method returns void, and it has the same input parameters as the ejbCreate method. If we want to set a relationship field to initialize the bean instance, we should do...
-
EJB Interview Questions
Ans