Developing EJBs (continued)...Session Beans
Create the Home Interface
- extend javax.ejb.EJBHome interface
- add create() and remove() methods
Create the Remote Interface
- extend the javax.ejb.EJBObject interface
- provide prototypes for business methods
Implement create methods in the Bean
Implement the SessionBean interface
- ejbActivate () - Called when the bean is activated
- ejbPassivate() - Called when the bean is passivated
- ejbRemove () - Called when the bean is destroyed
- setSessionContext(SessionContext context) - Called by container on creation to give the bean a context