August 2003
Intermediate to advanced
1464 pages
32h 2m
English
In This Chapter
The following sections describe some of the best practices to keep in mind while coding stateless and stateful session beans.
Because the Java Naming and Directory Interface (JNDI) lookup can be an expensive operation, caching all the onetime initialization procedures in the session bean’s setSessionContext() method is the recommended practice. The EJB container calls the session bean’s setSessionContext() to associate a session bean instance with its context maintained ...
Read now
Unlock full access