Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
EJB State Diagrams ©1996-2000 jGuru.com Simple Lifecycle of Session Bean Client EJBHome EJBObject Container Context Instance create(…) new new new setSessionContext(ctxt) ejbCreate(…) ejbPassivate() read state from instance write state to data store read state from data store write state to instance ejbActivate() Data Store EJB Transaction Sequence Client EJBHome EJBObject Synchron Instance Trans Svc Database javax.jts.UserTransaction.begin() business method register_synchronization(synch) afterBegin() access database regis_res() business method javax.jts.UserTransaction.commit() beforeCompletion() beforeCompletion() write updates to database commit() afterCompletion(s) afterCompletion(s) Creating an Entity Object Client EJBHome EJBObject Synchron Instance Trans Svc Database javax.jts.UserTransaction.begin() create(args) ejbCreate(args) create record in database Bean Managed regis_res() ejbCreate(args) Container Managed create record in database regis_res() new ejbPostCreate(args) register_synchronization(synch) business method business method Synchronizing with Data Client EJBHome EJBObject Container Instance Trans Svc Database business method business method ejbStore() write data to database ejbPassivate() Bean Managed ejbStore() extract fields write data to database Container Managed ejbPassivate() business method ejbActivate() ejbLoad() read data from database Bean Managed read data from database write data to fields ejbLoad() business method Container Managed