• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting TransactionManager

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can anyone provide me some example code , to how to get the object of javax.transaction.TransactionManager using hibernate apis (or any alternate means) in Websphere Appserver. From TxManager , I need to get the javax.transaction.Transaction object. The thing is the TxManager invokes call back beforeCompletion and afterCompletion methods. For this , we need to implement the interface javax.transaction.Synchronization interface and override beforeCompletion and afterCompletion methods. The class that implements Synchronization interface has to be registered by passing the object to Transaction.registerSynchronization method. Since I am not getting TransactionManager object , the above functionality is failing in my application. This works fine in Weblogic , problem is with Websphere only. Can anyone tell me any alternate means of getting the TranactionManager object.
thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic