com.ibm.websphere.samples.activitysessions.ASContainerManagedEJB2
Interface ASContainerManagedEJB2

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface ASContainerManagedEJB2
extends javax.ejb.EJBObject

Remote interface for Enterprise Bean: ASContainerManagedEJB2


Method Summary
 boolean checkValues(boolean completeLTC, boolean completionDirection)
          This remote method is the Fourth and final method invoked on the EJB
 void endLTC(boolean completionDirection)
          This remote method is the third method invoked on the EJB.
 void open()
          This remote method is the first method invoked on the EJB.
 void performUpdates()
          This remote method is the second method invoked on the EJB.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

open

void open()
          throws java.lang.Exception,
                 java.rmi.RemoteException
This remote method is the first method invoked on the EJB. It opens a connection to the datasource..

Throws:
java.rmi.RemoteException - Signals that a Remote exception of some sort has occurred.
java.lang.Exception - Signals that an exception of some sort has occurred.

performUpdates

void performUpdates()
                    throws java.lang.Exception,
                           java.rmi.RemoteException
This remote method is the second method invoked on the EJB. It updates some data in a database.

Throws:
java.rmi.RemoteException - Signals that a Remote exception of some sort has occurred.
java.lang.Exception - Signals that an exception of some sort has occurred.

endLTC

void endLTC(boolean completionDirection)
            throws java.lang.Exception,
                   java.rmi.RemoteException
This remote method is the third method invoked on the EJB. It completes the LTC in the direction specified.

Parameters:
completionDirection - boolean specifies which direction to complete the LTC, with true indicating to commit, false indicating to rollback.
Throws:
java.rmi.RemoteException - Signals that a Remote exception of some sort has occurred.
java.lang.Exception - Signals that an exception of some sort has occurred.

checkValues

boolean checkValues(boolean completeLTC,
                    boolean completionDirection)
                    throws java.lang.Exception,
                           java.rmi.RemoteException
This remote method is the Fourth and final method invoked on the EJB

Parameters:
completeLTC - boolean tells the checker whether the LTC was completed
completionDirection - boolean tells the checker the direction the LTC was completed. This is only relevant if completeLTC is true.
Throws:
java.rmi.RemoteException - Signals that a Remote exception of some sort has occurred.
java.lang.Exception - Signals that an exception of some sort has occurred.