[jboss-user] [JNDI/Naming/Network] - Remote JNDI lookup return local host IP
doktora
do-not-reply at jboss.com
Mon Jul 20 07:33:04 EDT 2009
Hi,
I have tomcat running on an external server (not on the same subnet) from JBoss 4.2.1 :
Tomcat <--> [ExternalIP] FW <--> [InternalIP] JBoss
JBoss is started with -b InternalIP
Tomcat is configured with java.naming.provider.url=jnp://ExternalIP:1099
What happens is that Tomcat connects to JBoss on 1099, then tries to get to InternalIP:1098, which is not visible from the Tomcat server (I assume JBoss tells it to connect to the IP on which it's listening - InternalIP).
Eventually Tomcat gives up with:
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: <InternalIP>; nested exception is:
| java.net.ConnectException: Connection timed out]
Any thoughts on how to configure this setup properly?
Thanks
dok
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244621#4244621
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244621
More information about the jboss-user
mailing list