In 3.2.3 (at least) a JBoss client cannot dynamically determine the JBoss server if it uses user transactions. This is because the JBoss UserTransaction implementation does a further JNDI lookup using an InitialContext created with the default constructor. Specifically, in private void createSession(), a lookup of name UserTransactionSessionFactory is performed using the default InitialContext() whose environment is classpath-determined.
Why or when is this a problem? If the client wants to determine JNDI context environment at run-time, using the constructor InitialContext(Hashtable), this environment does not propagate to the subsequent lookup by ClientUserTransaction. I would like to write clients that concurrenty access multiple servers, with the location of those servers determined programmatically (not by changing the classpath). If I'm missing something, or someone has a workaround, I'd appreciate hearing about it. -Peris View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838223#3838223 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838223 ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
