Presentation is loading. Please wait.

Presentation is loading. Please wait.

EJB Types Alessio Bechini June 2002.

Similar presentations


Presentation on theme: "EJB Types Alessio Bechini June 2002."— Presentation transcript:

1 EJB Types Alessio Bechini June 2002

2 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

3 Session Beans (stateless)
Does not exist 1) Class.newInstance 2) SetSessionContext 3) ejbCreate ejbRemove Ready Any operating method

4 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

5 Message Beans Does not exist Ready (in pool)
1) newInstance 2) setMessageDriv- enSessionContext 3) ejbCreate ejbRemove Ready (in pool) onMessage(msg)


Download ppt "EJB Types Alessio Bechini June 2002."

Similar presentations


Ads by Google