0 Replies Latest reply on Aug 9, 2005 8:10 AM by burakbayramli

    Looking up EJB using multicast, HA-JNDI

    burakbayramli Newbie

      Hello,

      I have setup an EJB cluster consisting of two nodes running on a Linux machine (using ports-01 and ports-02). My problem is retrieving an EJB from a third JVM (same machine) using HA-JNDI (multicast method). I've read JBossClustering.pdf doc, it says if you want to use multicast JNDI lookup, use empty Context.PROVIDER_URL. So I did this:

      Properties p = new Properties();
      p.put(Context.INITIAL_CONTEXT_FACTORY,
       "org.jnp.interfaces.NamingContextFactory");
      p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
      p.put(Context.PROVIDER_URL, "");
      


      Using this method, I got this result:

      12:50:53,474 ERROR [STDERR] javax.naming.NameNotFoundException: ejb not bound
      12:50:53,475 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming
      Server.java:491)
      


      EJB is bound though, because if I change JNDI port to localhost:1199, things work just fine.

      I am running JBoss 4.0.1 on SuSe Linux 8, JDK 1.4.2

      Any help would be appreciated.

      Thanks,