Module jakarta.ejb
Package jakarta.ejb

Enum Class TransactionAttributeType

java.lang.Object
java.lang.Enum<TransactionAttributeType>
jakarta.ejb.TransactionAttributeType
All Implemented Interfaces:
Serializable, Comparable<TransactionAttributeType>, Constable

public enum TransactionAttributeType extends Enum<TransactionAttributeType>
The enum TransactionAttributeType is used with the TransactionAttribute annotation to specify whether the methods of a session bean or message driven bean are called with a valid transaction context.

For a message-driven bean's message listener methods (or interface), only the REQUIRED and NOT_SUPPORTED values may be used.

For an enterprise bean's timeout callback methods, only the REQUIRED, REQUIRES_NEW and NOT_SUPPORTED values may be used.

For a session bean's asynchronous business methods, only the REQUIRED, REQUIRES_NEW, and NOT_SUPPORTED values may be used.

For a singleton session bean's PostConstruct and PreDestroy lifecycle callback interceptor methods, only the REQUIRED, REQUIRES_NEW, and NOT_SUPPORTED values may be used.

If an enterprise bean implements the SessionSynchronization interface or uses any of the session synchronization annotations, only the following values may be used for the transaction attributes of the bean's methods: REQUIRED, REQUIRES_NEW, MANDATORY.

Since:
EJB 3.0
See Also: