May 2001
Intermediate to advanced
1088 pages
30h 13m
English
In the EJB world, a transaction is typically associated with a session and not an entity bean. That is, entity beans don't have any control over when a transaction begins or ends, although an entity bean can signal that the transaction must be rolled back.
Session beans might or might not begin transactions on their own. You can specify that a session bean controls transactions on its own, in which case you must explicitly begin and end a transaction from within the various methods in your bean. When a session bean starts and ends transactions on its own, it's using Bean-Managed Transactions, or BMT.
A session bean can also let the container choose when to begin and end a transaction. You probably already guess ...
Read now
Unlock full access