EJB Types Alessio Bechini June 2002
Entity Beans Does not exist Pool Ready unsetEntityContext 1) Class.newInstance 2) setEntityContext ejbHome ejbFind ejbSelect Pool 1) ejbCreate 2) EjbPostCreate or ejbActivate ejbPassivate ejbRemove Ready ejbLoad ejbStore ejbSelect Any operating method
Session Beans (stateless) Does not exist 1) Class.newInstance 2) SetSessionContext 3) ejbCreate ejbRemove Ready Any operating method
Session Beans (statefull) Does not exist Timeout 1) Class.newInstance 2) SetSessionContext 3) 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 Ready (in pool) 1) newInstance 2) setMessageDriv- enSessionContext 3) ejbCreate ejbRemove Ready (in pool) onMessage(msg)