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.
Every session bean must implement the SessionBean interface, which contains four methods. The EJB container uses these methods to manage the session bean.
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 ...