I'm having problems with multiple class loaders:

Properties environment = new Properties();
  | environment.put("java.naming.factory.initial", 
"org.jnp.interfaces.NamingContextFactory");
  | environment.put("java.naming.provider.url", jnpUrl);
  | environment.put("java.naming.factory.url.pkgs", 
"org.jboss.naming:org.jnp.interfaces");
  | NamingContextFactory contextFactory = new NamingContextFactory();
  | NamingContext jndiContext = (NamingContext) 
contextFactory.getInitialContext(environment);
  | Object o = jndiContext.lookup("ConnectionFactory");

When this code runs within my resource loader it does not use 
Thread.currentThread().getContextClassLoader() to find the supporting classes 
it needs.  So even though jboss-common-client.jar and jbossmq-client.jar are in 
the rar file it cannot access it.  Is there a way around this problem?

Thank you,
David

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873305#3873305

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873305


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to