Hello, all.

Can you give me some advice how to get UserTransaction or TrasactionManger?

I wrote some codes in my application as follows;

        // Below codes are from Orion FAQ
import javax.naming.*; 
import javax.transaction.*; 
... 
TransactionManager manager = (TransactionManager)new 
InitialContext().lookup("java:comp/UserTransaction");
I didn't have any problem compiling my codes, but I met below error while running my 
application
avax.naming.NameNotFoundException: java:comp/UserTransaction not found
at com.evermind.server.rmi.RMIContext.lookup(JAX)
Thank you in advance.
-HK

Reply via email to