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 ?
-
Transaction Synchronization (2 messages)
- Posted by: Dushyanth Inguva
- Posted on: May 26 2005 15:18 EDT
Threaded Messages (2)
- Sound notification->so JMS? by S??bastien Tardif on May 26 2005 23:37 EDT
- Sound notification->so JMS? by Dushyanth Inguva on May 27 2005 11:08 EDT
-
Sound notification->so JMS?[ Go to top ]
- Posted by: S??bastien Tardif
- Posted on: May 26 2005 23:37 EDT
- in response to Dushyanth Inguva
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? -
Sound notification->so JMS?[ Go to top ]
- Posted by: Dushyanth Inguva
- Posted on: May 27 2005 11:08 EDT
- in response to S??bastien Tardif
Interesting solution with JMS :-)
Thanks