Download presentation
Presentation is loading. Please wait.
Published byCarol Shaw Modified over 9 years ago
1
©1996-2000 jGuru.com EJB State Diagrams
2
Simple Lifecycle of Session Bean ClientEJBHomeEJBObjectContainerContextInstanceData Store setSessionContext(ctxt) read state from instance create(…) new ejbCreate(…) ejbPassivate() read state from data store write state to data store write state to instance ejbActivate()
3
EJB Transaction Sequence ClientEJBHomeEJBObjectSynchronInstanceTrans SvcDatabase javax.jts.UserTransaction.begin() business method register_synchronization(synch) afterBegin() access database regis_res() business method javax.jts.UserTransaction.commit() beforeCompletion() commit() afterCompletion(s) write updates to database
4
Creating an Entity Object ClientEJBHomeEJBObjectSynchronInstanceTrans SvcDatabase javax.jts.UserTransaction.begin() create(args) register_synchronization(synch) create record in database regis_res() business method new ejbPostCreate(args) business method ejbCreate(args) create record in database regis_res() ejbCreate(args) Bean Managed Container Managed
5
Synchronizing with Data ClientEJBHomeEJBObjectContainerInstanceTrans SvcDatabase business method write data to database business method ejbStore() Bean Managed Container Managed business method ejbStore() ejbPassivate() write data to database extract fields ejbPassivate() ejbActivate() ejbLoad() read data from database write data to fields ejbLoad() Bean Managed Container Managed
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.