1 Reply Latest reply on Jul 15, 2004 12:43 PM by javri28

    Context.PROVIDER_URL or something else

    javri28

      Hi guys,

      I know this question is old as our world. I know there are lots of topics about that, but I couldn't find the solution. So, forgive me the one more same topic and look:

      public static final Properties JBOSS_JNDI_PROPERTIES;
      static {
      //asign default properties
      JBOSS_JNDI_PROPERTIES = new java.util.Properties();
      JBOSS_JNDI_PROPERTIES.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      JBOSS_JNDI_PROPERTIES.put(Context.PROVIDER_URL, "localhost:51099");
      JBOSS_JNDI_PROPERTIES.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.inteface");
      }

      and the other one:

      BOSS_JNDI_PROPERTIES = new java.util.Properties();
      JBOSS_JNDI_PROPERTIES.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      JBOSS_JNDI_PROPERTIES.put(Context.PROVIDER_URL, "192.168.0.9:51099");
      JBOSS_JNDI_PROPERTIES.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.inteface");

      I swear 192.168.0.9 is the right IP. But with IP it's not wotking - the RemoteHome interface that I'm trying to get is null.

      Any ideas?

      Thank you