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
Guys, I solved it. In fact it was completely other problem.