[jboss-user] [JNDI/Naming/Network] - jndi lookup for an object hosted by jboss AS 4.2.2

haf do-not-reply at jboss.com
Wed Aug 20 05:15:51 EDT 2008


we have a web application that is supposed to send messages to a MDB that is hosted on JBoss application server on a different machine

we use a code like this to lookup the connection factory 

  | Hashtable env = new Hashtable();
  | env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  | env.put(Context.PROVIDER_URL, "");
  | Context ctx = new InitialContext(env);
  | QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("QueueConnectionFactory");

When the remote objects are hosted by jboss version 4.0.4, everything work fine, but when we migrated to JBoss 4.2.2 then the lookup fails!!!!

so the question is :

is there any security changes or anything else that has been added to Jboss 4.2.x series or releases after 4.0.x in general that changes the default behaviour related to JNDI lookup mechanism ? and what can i do to resolve this issue?



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

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

More information about the jboss-user mailing list