Bean Type
| |||
|---|---|---|---|
| Entity | Y | N | N |
| Session | Y | Y | Y |
| Message-driven | Y | Y | Y |
Showing posts with label Transaction. Show all posts
Showing posts with label Transaction. Show all posts
JEE Transaction
2 types of transactions:
a. Container-managed transactions
b. Bean-managed transactions
Mandatory vs Never
NotSupported vs Supports
a. Container-managed transactions
b. Bean-managed transactions
Mandatory vs Never
NotSupported vs Supports
@TransactionAttribute(NOT_SUPPORTED)
@Stateful
public class TransactionBean implements Transaction {
...
@TransactionAttribute(REQUIRES_NEW)
public void firstMethod() {...}
@TransactionAttribute(REQUIRED)
public void secondMethod() {...}
public void thirdMethod() {...}
public void fourthMethod() {...}
}
Labels:
J2EE,
Transaction
Subscribe to:
Posts (Atom)