JBoss allows the
javax.transaction.UserTransaction object to
be looked up at the nonstandard JNDI location of
"UserTransaction". JOnAS
requires you to use the J2EE standard location of
"java:comp/UserTransaction".
Example 5-1. JBoss User Transaction Lookup
UserTransaction utx;
utx = (javax.transaction.UserTransaction)
initialContext.lookup("UserTransaction");
Example 5-2. JOnAS User Transaction Lookup
UserTransaction utx;
utx = (javax.transaction.UserTransaction)
initialContext.lookup("java:comp/UserTransaction");
Any Java or JSP code that uses the JBoss specific JNDI path
to access the UserTransaction object will
need to be modifed to use the J2EE standard JNDI path.