1.statefull session beans only will implement sessionSynchronization interface. 2. container will use these 3 methods(afterbegin(),beforeCompletion(),afterCompletion) as call back methods to synchronize the state of the bean with database. 3. the purpose of implementing this interface, and using these methods will come in transactions.
Now my doubt is: when these methods will be used by container?
1. in Bean Managed transaction ? 2. or Container Managed Transactions?