• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting TransactionManager  RSS feed

prashanth nagaraj
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!