Is there anything special I need to specify in the Orion configuration to get a value UserTransaction from a lookup?
 
I have tried both the following:
 
    public static UserTransaction getTransaction()
    throws javax.naming.NamingException {
 
        String name = //java:com/env/UserTransaction
            "java:comp/UserTransaction";
        Context context = JndiInterface.getContext();
        return (UserTransaction) context.lookup( name );
 
    }
 
No matter which lookup name I use, I get the following exception
 
javax.naming.NameNotFoundException: java:comp/UserTransaction not found
 
Thanks,
Tim
 

Reply via email to