I am trying to connect from a jboss behinfd the firewall to jboss inside the firewall and getting this exception:
javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
2006-03-23 19:54:18,197 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
2006-03-23 19:54:18,197 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
from inside the network it works fine.
My code snippest is
Properties p1 = new Properties(); p1.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); p1.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces"); p1.put(Context.PROVIDER_URL, "server_external_IP_Address:1099"); Context ctx1 = new InitialContext(p1); Object externalJobIntegerationMgmtHomeRef = ctx1.lookup(ExternalJobIntegerationMgmtHome.JNDI_NAME); externalJobIntegerationMgmtHome = (ExternalJobIntegerationMgmtHome)PortableRemoteObject.narrow(externalJobIntegerationMgmtHomeRef, ExternalJobIntegerationMgmtHome.class);