EJB transaction attribute: What is the default transaction attribute for an EJB?

What is the default transaction attribute for an EJB?

- There is no default transaction attribute for an EJB.

- The deployer must specify a value for the transaction attribute for the methods that have container managed transactions.

- A transaction attribute controls the scope of a transaction.

A transaction attribute can have one of the following values:

1. Required
2. RequiresNew
3. Mandatory
4. NotSupported
5. Supports
6. Never

- Transaction attributes are specified by decorating the enterprise bean class or method with a javax.ejb.TransactionAttribute annotation and setting it to one of the javax.ejb.TransactionAttributeType constants.

For example: The default transaction attribute for EJB is SUPPORTS in WebLogic.
EJB Server,Container,Connector: Difference between a Server, a Container, and a Connector.
EJB Server, Container, Connector - A server is an application that responds to the requests made by client(s) and manages system resources like network connections, threads, processes, memory, ..
EJB ejbFindByPrimaryKey: Why is ejbFindByPrimaryKey mandatory?
EJB ejbFindByPrimaryKey - Primary Keys are used to uniquely identify objects from a database. The ejbFindByPrimaryKey method is used...
What is session facade?
What is session facade? - Session Façade is one of the design pattern. It is utilized in developing enterprise applications frequently.....
Post your comment
Discussion Board
There is no default transaction attribute for an EJB.?!?
From the EJB 3.1 specification:

"If the transaction attribute type is not specified, it is assumed to be REQUIRED. The absence of a transaction attribute specification on the bean class is equivalent to the specification of TransactionAttribute(REQUIRED) on the bean class"
J2ee 02-27-2015