More Details About Session Beans
Now that you have a feel for the structure of session beans and what it takes to implement them, there are a few more details you need to know to be more effective when designing and developing session beans.
The SessionBean Interface
Every session bean must implement the SessionBean interface, which contains four methods. The EJB container uses these methods to manage the session bean.
setSessionContext
A SessionContext object contains information about the environment the session bean is running in. It contains a reference to the bean's Home interface, a reference to the bean itself, transaction information, and the identity of the caller who invoked a specific method.
The setSessionContext method is called ...
Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.