![]() |
| 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:30:37: Message Driven Bean (MDB) is an enterprise bean which runs inside the EJB container and it acts as Listener for the JMS asynchronous message . It does not have Home Latest Answer : Message Driven Bean (MDB) is an enterprise bean which runs inside the EJB container and it acts as Listener for the JMS asynchronous message . It does not have Home and Remote interface as Session or Entity bean. It is called by container when container ... 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() ... Latest Answer : yes ... If i throw a custom ApplicationException from a business method in Entity bean which is participating in a transaction, would the transaction be rolled back by container. Does container rolls back transaction only in case of SystemExceptions Answer posted by Mohan on 2005-05-21 17:21:54: yes the rollback will occur Answer posted by Mohan on 2005-05-21 19:27:35: No Latest Answer : We must have a ejbCreate(); to create a Session bean . ... 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? ... Answered by Jey Ramasamy on 2005-05-08 20:04:33: No. This method must not contain any input parameters and cannot be overloaded as well. Latest Answer : No. This method must not contain any input parameters and cannot be overloaded as well. ... Latest Answer : Yes, you can create entity bean without impelementing the create() method. The ejbs will be instantiated by findByPK or any finder methods. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||