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"); | After the lookup I get back in utx an ServerVMClientUserTransaction object, but with TransactionManager tm=null and the Collection listeners = empty ArrayList, if I check in the debugger. Any operation on the object result in errors and consequently the UserTransaction is useless... What am I doing wrong? Why isn't the TransactionManager injected into the returned UserTransaction? Any hints and help welcome! ;-) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879575#3879575 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879575 ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user