Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session synchronization

 
usha mocherla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I have a doubt regarding session synchronization.

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?

please clear my doubt,

Thanks in advance.
Usha
 
usha mocherla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got It,

issue exits only in CMT session beans.(statefull)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic