• 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:

transaction registerSynchronization()

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,

I am using EJB CMT and deep inside my call stack, I need to register a synchronization. How do I get access to javax.transaction.Transaction ? Since I am doing CMT, using UserTransaction is out of the window.

I could make my ejbs implement SessionSynchronization, and provide a registering mechanism, bind the register to a thread local variable. But thats a lot of work.

I was wondering if there is a way for an arbitrary method to lookup the current javax.transaction.Transaction object.
 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I looked at the spec and realized that a stateless session bean CANNOT implement SessionSynchronization interface. So, what options do I have to get a notification about the transaction from the stateless session bean with CMT ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic