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, ..