May 2001
Intermediate to advanced
1088 pages
30h 13m
English
The SessionSynchronization interface gives your session bean an extra measure of control over its transactions. The interface contains three methods and is defined as shown in Listing 9.1.
public interface SessionSynchronization
{
public void afterBegin();
public void beforeCompletion();
public void afterCompletion();
}
|
A session bean can optionally implement the SessionSynchronization interface to learn about when a transaction starts and ends. When a session becomes part of a transaction, the container invokes the session's afterBegin method. Before the transaction is committed, the container invokes the beforeCompletion. All business ...
Read now
Unlock full access