2 Replies Latest reply on Oct 9, 2007 9:08 AM by wayne baylor

    hajndi lookup

    Poyan Gerami Novice

      I have an queue deployd on clustured servers:

      server1
      server2


      I run hajndi on one off the servers like this:

       env.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
       env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming");
       env.put(Context.PROVIDER_URL, server1:1100;
      
       try {
       InitialContext ctx = new InitialContext(env);
       ...
      ...
      ...
      
      


      This works goog, now i whant to lookup the queue from server2 server to, how can i do that ??