Hello friends,
I read the entire
thread written above.
As per the specification
1. Stateless session bean should not implement SessionSynchronization interface
2. Statefull session bean with BMT should not implement SessionSynchronization interface.
3. Only Statefull session bean with CMT can implement SessionSynchronization interface.
I know that in case of CMT when the transactional method starts, a transaction is started and when the method ends, the transaction ends.
Example: Client calls a method on CMT statefull session bean with transaction attribute of required. A new transaction is created before executing the method and ends as the methods completes.
My understanding is the above statemenet is valid for both statefull and stateless CMT session beans.
If I am correct then why I am not allowed to implement session synchronization interface for stateless session bean with CMT ?
Thanks
Rohit.