3 Replies Latest reply on Aug 21, 2008 7:37 AM by jaikiran pai

    jndi lookup for an object hosted by jboss AS 4.2.2

    Hazem Hegazi Newbie


      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.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?