I am using a stateless session bean with CMT.
Deep in my call stack behind my ejb, I have to know the result of the current transaction (I need a callback that will get invoked with the result of the current transaction - commit/rollback)
I cannot use SessionSynchronization interface as this is a stateless session bean. Can I some how lookup the current transaction (not UserTransaction) and use it's registerSynchronization() method?
What other options do i have ?
If you send a message, you will receive the message only when commit happen. It's a kind of notification for the success. Do you really need to know about the rollback?
If yes, because you are managing state? So why not using statefull session bean?
Interesting solution with JMS :-)