50 likes | 211 Views
EJB Types. Alessio Bechini June 2002. Entity Beans. Does not exist. unsetEntityContext. 1) Class.newInstance 2) setEntityContext. ejbHome ejbFind ejbSelect. Pool. 1) ejbCreate 2) EjbPostCreate or ejbActivate. ejbPassivate ejbRemove. Ready. ejbLoad ejbStore. ejbSelect.
E N D
EJB Types Alessio Bechini June 2002
Entity Beans Does not exist unsetEntityContext 1) Class.newInstance2) setEntityContext ejbHome ejbFind ejbSelect Pool 1) ejbCreate2) EjbPostCreate or ejbActivate ejbPassivate ejbRemove Ready ejbLoad ejbStore ejbSelect Any operating method
Session Beans (stateless) Does not exist 1) Class.newInstance2) SetSessionContext3) ejbCreate ejbRemove Ready Any operating method
Session Beans (statefull) Does not exist Timeout 1) Class.newInstance2) SetSessionContext3) ejbCreate ejbRemove 1) Client calling a transactional operating method 2) afterBegin ejbPassivate Ready Passive 1) beforeCompletion (only with commit)2) afterCompletion ejbActivate Any operating method(not transactional) Ready in transaction Any transactional operating method
Message Beans Does not exist 1) newInstance2) setMessageDriv- enSessionContext3) ejbCreate ejbRemove Ready (in pool) onMessage(msg)