![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions 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. Latest Answer : entity bean are used to represent state of unique entity.for example. each employee have unique ID . ... Answered by Nikhil on 2005-05-11 01:52:59: The lifetime of an MDB instance is controlled by the container. Only two states exist: Does not exist and Ready , as illustrated in the following figure: The Latest Answer : The lifetime of an MDB instance is controlled by the container. Only two states exist: Does not exist and Ready , as illustrated in the following figure: The life of an MDB instance starts when the container invokes newInstance() ... Answered by Jey on 2005-05-08 11:55:29: Activation and Passivation is appilicable for only Stateful session bean and Entity bean. When Bean instance is not used for a while by client then EJB Latest Answer : Activation and Passivation is appilicable for only Stateful session bean and Entity bean. When Bean instance is not used for a while by client then EJB Container removes it from memory and puts it in secondary storage (often disk) so that ... Latest Answer : pooling of instances. in stateless session beans and Entity Beans server maintains a pool of instances.whenever server got a request from client, it takes one instance from the pool and serves the client request. ... Answered by Nikhil on 2005-05-11 11:28:14: Lazy loading is a characteristic of an application when the actual loading and instantiation of a class is delayed until the point just before the instance is Latest Answer : In Lazy loading, you load the child data as and when required.Example:public class OrderBean implements EntityBean { private long orderId; private String orderName; ... Answer posted by Mohan on 2005-05-21 19:24:23: All Beans support Instance Pooling Latest Answer : EJB does indeed support the effect of pooling stateful session beans.Only a few instances can be in memory when there are actually many clients. But this pooling effect does not come for free---the passivation/activation steps could entail an input/output ... With EJB 1.1 specs, why is unsetSessionContext() not provided in Session Beans, like unsetEntityContext() in Entity Beans This was the answer Provided by some one... According to Mohan this one is not correct. Please see Mohan's reply below and more in the comments section. ejbRemove() is called for session Answered by Jey on 2005-05-08 11:06:46: When the EJB container needs to synchronize the instance variables of an entity bean with the corresponding values stored in a database, it invokes the ejbLoad and Latest Answer : Note: ejbLoad and ejbStore methods are to be coded only if you are creating a BMP. For CMP these methods are handled by the container. ... 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 Latest Answer : How is ejbPostCreate() perform the fllow-up methods? ... How can i retrieve from inside my Bean(Stateless session and Entity CMP) the user name which i am serving (the user name of user just logged in my web application) Inside an EJB you may retrieve the "Caller" name, that is the login id by invoking: sessionContext.getCallerIdentity().getName() where sessionContext is the instance of "SessionContext"
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||