From: Gavin_King/Cirrus%<CI...@ci...> - 2002-06-15 00:47:02
|
>I needed to do this using Orion as my application server, and here is >how I did it: > >TransactionManager manager = (TransactionManager)new >InitialContext().lookup("java:comp/UserTransaction"); > >However, I don't know if it works the same on other applications servers... Just tried that and some variations in websphere (websphere lists the UserTransaction as "jta/usertransaction") and no luck unfortunately. The UserTransaction can't be cast to Transaction or TransactionManager. I spent some serious time searching the web for info on this and all I could turn up was that its possible to do in Orion + JBoss but perhaps not in WebLogic + WebSphere.... might have to do without it. thanks Gavin |