April 2003
Intermediate to advanced
750 pages
16h 53m
English
In our example we introduced a couple of best practices that we want to summarize, and introduced a few additional items for you to consider. These are guidelines, rather than rules, so let your experience guide you in these matters.
Do not store conversational state in stateless session beans— This is pretty much the definition of a stateless session bean, but it bears repeating. A methods execution should not rely on any previous client or conversational state having been set in order to execute.
Use ejbCreate to initialize non-conversational stateless variables— Take advantage of this method to initialize resources that are used throughout the life of the stateless session bean.
Release open ...
Read now
Unlock full access