org.objectweb.jonas.jtests.beans.beanexc
Class AccountSY

org.objectweb.jonas.jtests.beans.beanexc.AccountSY

public class AccountSY


Constructor Summary
AccountSY()
           
 
Method Summary
 void afterBegin()
          The afterBegin method notifies a session Bean instance that a new transaction has started, and that the subsequent business methods on the instance will be invoked in the context of the transaction.
 void afterCompletion(boolean committed)
          The afterCompletion method notifies a session Bean instance that a transaction commit protocol has completed, and tells the instance whether the transaction has been committed or rolled back.
 void beforeCompletion()
          The beforeCompletion method notifies a session Bean instance that a transaction is about to be committed.
 

Constructor Detail

AccountSY

public AccountSY()
Method Detail

afterBegin

public void afterBegin()
The afterBegin method notifies a session Bean instance that a new transaction has started, and that the subsequent business methods on the instance will be invoked in the context of the transaction. This method executes in the proper transaction context.
Throws:
EJBException - Thrown if the instance could not perform the function requested by the container because of a system-level error.

beforeCompletion

public void beforeCompletion()
The beforeCompletion method notifies a session Bean instance that a transaction is about to be committed. This method executes in the proper transaction context. Note: The instance may still cause the container to rollback the transaction by invoking the setRollbackOnly() method on the instance context, or by throwing an exception.
Throws:
EJBException - Thrown by the method to indicate a failure caused by a system-level error.

afterCompletion

public void afterCompletion(boolean committed)
The afterCompletion method notifies a session Bean instance that a transaction commit protocol has completed, and tells the instance whether the transaction has been committed or rolled back. This method executes with no transaction context.
Parameters:
: - committed - True if the transaction has been committed, false if it has been rolled back.
Throws:
EJBException - Thrown by the method to indicate a failure caused by a system-level error.