![]() |
| 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 Answer posted by Mohan on 2005-05-20 08:40:04: Java Beans is intra-process component where as EJB is an Inter-Process component JavaBeans is particularly well-suited for asynchronous, intra-application Latest Answer : JavaBean :1. Low-level approach for developing re-usable components for building different Java applications (Applets, stand-alone applications etc.).2. Java Beans runs in a JVM, just like other normal java classEJB :1. High-level approach to build Distributed ... Answer posted by Mohan on 2005-05-20 08:44:39: SessionBeans typically are used to represent a client they are of two typse Stateful Session Beans : they maintain conversational state between Latest Answer : Session bean is encapsulates the business logic. and carry out the task for behalf of the client. It have two types.one is stateful session bean. this is maintain the convesional state.another one is stateless session bean. donot maintain the conversional.state. ... Answer posted by Mohan on 2005-05-20 08:45:36: Stateful session beans have the passivated and Active state which the Stateless bean does not have. Latest Answer : Stateful session beans follow the instance passivation techniqueStateless session beans follow the instance pooling technique.ejbActivate() and ejbPassivate() methods are not called in Stateless session beansI ... Latest Answer : 1. doesnot exsist 2. exsists 3. passivate invoke ejbcreate() set the sessioncontext() call create() if the session idle call ejbPassivate() to get back to session call ejbActivate() to end the ... Latest Answer : 1. dose not exsist 2. exsist to start the session set the sessionContext() call create() to end session call remove ... Answered by Jey on 2005-05-08 19:41:22: Session bean callback methods differ whether it is Stateless or stateful Session bean. Here they are. Stateless Session Bean 1. setSessionContext() 2. Latest Answer : Session callback methods setSessionContext();unsetSessionContext();ejbLoad();ejbActivate();ejbPassivate();ejbRemove();Entity bean call back methodspublic void setEntityContext(javax.ejb.EntityContext c); public void unsetEntityContext();public void ejbLoad(); ... Latest Answer : I'll take a best exmaple to explain.Statefull sessionbean : ATM operationStateless Session Bean : Credit card Once we log into the ATM by entering PIN number. We can do multiple transacations like Balance enquiry, Withdrawl, ministatement..etc... ... 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 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 Latest Answer : CMP means Container Managed Persistence. In case of CMP bean , developers 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 ... Latest Answer : The following steps describe the life cycle of an entity bean instance An entity bean instances life starts when the container creates the instance using newInstance and then initialises it using setEntityContext. The instance enters ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||