• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

session synchronization

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got It,

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