Hi !
Weblogic 6.0 has the Transaction Manager bound to the JNDI name space. We can therefore get the handle to the TransactionManager
(please treat the following as pseudocode...)
TransactionManager tm = (TransactionManager)
ctx.lookup(javax.naming.TransactionManager)
enlist XAResources
tm.enlist(..);
tm.enlist(..);
and do a 2 phase commit.
I have not seen such examples on the Weblogic samples folder. Is this approach alright ? All the examples deal with EJB's handling the exception.
I'd like to put a message into a MOM queue and save the same on a database. XAResource handles are available for the same.
Thanks !
shanlz
Discussions
EJB programming & troubleshooting: using Weblogic Transaction Manager6.0 for standalone programs...
-
using Weblogic Transaction Manager6.0 for standalone programs... (0 messages)
- Posted by: Shantanu Upadhyaya
- Posted on: July 15 2003 06:19 EDT