1 / 5

EJB Types

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.

denis
Download Presentation

EJB Types

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EJB Types Alessio Bechini June 2002

  2. 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

  3. Session Beans (stateless) Does not exist 1) Class.newInstance2) SetSessionContext3) ejbCreate ejbRemove Ready Any operating method

  4. 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

  5. Message Beans Does not exist 1) newInstance2) setMessageDriv- enSessionContext3) ejbCreate ejbRemove Ready (in pool) onMessage(msg)

More Related