Session bean concepts
Session beans are non-persistent enterprise beans, in that they do not survive software or hardware crashes, as is the case with entity beans. There are two types of session beans, stateful session beans and stateless session beans.
Session beans may coordinate the work between entity beans, and provide a context for which entity bean access is performed. For example, the task associated with transferring money between two bank accounts—represented by entity beans—can be implemented in a session bean. Such a transfer session bean has to find two instances of the account entity bean (by using the account IDs), and then subtract a specified amount from one account and add the same amount to the other account.
Session bean ...
Get EJB 2.0 Development with WebSphere Studio Application Developer 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.