I want to get a UserTransaction (not in a session bean) doing
as follows:
InitialContext context = null; Hashtable props = new Hashtable(); props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); props.put(Context.PROVIDER_URL,"jnp://localhost:1099"); try { context = new InitialContext(props); } catch (NamingException e) { // throw exception } UserTransaction utx = (UserTransaction)context.lookup("UserTransaction");