Hello,
After a long research about issues on JBossMQ when deploying the JBoss server behind a firewall, i decided to write a new topic, as my problem seems to be quite special.
We are using JBoss 4.0.5 GA in our application, and we use the JBossMQ service.
Our server is deployed on a computer behind a NAT router, but all ports redirections are set to allow external connections to our JBoss server.
We had of course no problem when running the soft on local network, but we encountered issues as soon as we tried to connect through the router.
We solved our firsts issues :
1. When connecting through the router via RMI, you have to specify the RMI server public address, by launching JBoss with the -Djava.rmi.server.hostname="you public address" argument.
2. As you want connections from anywhere to be possible on JBoss, add the -Djboss.bind.address=0.0.0.0 argument.
3. After that, we were able to obtain RMI connection, but it was impossible to connect to JMS, we had the following exception :
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect)
<attribute name="ConnectAdress">you.public.address</attribute>