Good day!
While testing two JBoss servers in local network speaking to each other all worked ok, but when I placed JBoss servers in different places in Internet I encountered a real problem.
In JBoss Admin Guide is written about needed ports for JBoss working behind firewall - I opened 1098,1099,4444 for RMI and JNDI. But when starting then BOTH SIDES report exceptions that it is impossible to route to host. As I see from exceptions, RMI-stubs, generated by JBoss and sending between servers, point to LOCAL addresses of servers, that servers has behind firewalls, and not to real Internet addresses.
In JBOss FAQ I read about ONE method to solve the problem: insert in JBooss run.sh JVM params -Djava.rmi.server.hostname="address of firewall in Internet", -Djava.rmi.server.useLocalHostname=false.
Is it possible to tell JBoss in some config file use real (outer) Internet address of firewall instead inner local address of JBoss server behind firewall? There is no word about this problem in JBoss Admin Guide.
Please help.