0
Which are the attributes of Container Managed Transactions?

Open 1 Answers 48 Views Technology

Which are the attributes of Container Managed Transactions?

1 Answer

0
EJB 3.0 has specified following attributes of transactions which EJB containers implement:

REQUIRED - Indicates that business method has to be executed within transaction otherwise a new transaction will be started for that method.

REQUIRES_NEW - Indicates that a new transaction is to be started for the business method.

SUPPORTS - Indicates that business method will execute as part of transaction.

NOT_SUPPORTED - Indicates that business method should not be executed as part of transaction.

MANDATORY - Indicates that business method will execute as part of transaction otherwise exception will be thrown.

NEVER - Indicates if business method executes as part of transaction then an exception will be thrown.
by (302k points)
...