Adapter for Enterprise JavaBeans 6.5 SP3 | webMethods Adapter for Enterprise JavaBeans Documentation | webMethods Adapter for Enterprise JavaBeans Installation and User’s Documentation | Overview of webMethods Adapter for Enterprise JavaBeans | Adapter Connections | EJB Transaction Management
 
EJB Transaction Management
When configuring adapter connections to be used by adapter services, you must also consider how or whether the EJB uses container demarcation to manage its transactions. With container demarcation, the EJB client may call an EJB with an external transaction context, or not. The value of the <trans-attribute> deployment descriptor determines how transactions are handled. A transaction attribute can have the following values:
Transaction Attribute Value
Description
NotSupported
Indicates an "unspecified transaction context." The client's transaction context is suspended until the bean method completes.
Supports
The client's transaction context is propagated to the bean. If there is no client context, the bean method is executed under "unspecified context."
Required
The client's transaction context is propagated to the bean. If no client context is specified, the container creates a new context for the transaction.
RequiresNew
The client's transaction context (if any) is suspended and a new context is always created.
Mandatory
The client's transaction context is propagated to the bean. If no client context is specified, the container throws a TransactionRequiredException.
Never
The client's transaction context is prohibited. If a client context is passed, it causes the container to throw a RemoteException. Otherwise, the container operates the transaction with "unspecified transaction context."