When a session bean has container-managed demarcation value of 'Supports', which three methods run in an unspecified transaction context?
1. ejbActivate
2. getRollbackOnly
3. getUserTransaction
4. ejbRemove
5. afterBegin
6. afterCompletion

Options
- 1,4,3
- 4,2,6
- 1,4,6
- 2,5,6


CORRECT ANSWER : 1,4,6

Discussion Board
Container Managed Demarcation

Container-Managed Persistence uses three methods namely:

1) ejbActivate
2) ejbRemove
3) afterCompletion

These methods are used in running in an unspecified transaction context. The persisted data for the bean can be managed by the container. The container stores and reloads the persistent data to and from the database being used to develop and manage. To have persistence management logic container invokes a persistence manage class that manages the data.

Rohit Sharma 08-22-2014 06:07 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement