Configure HornetQ in JBoss EAP 6 to work with NAT
Issue
- Our JMS server is running on IP address X and there is a static route that maps that IP to address Y. IP address Y is visible from the "gateway" machine, but not address X. So,
- The client creates an InitialContext and connects to Y port 4447
- The ConnectionFactory is created via the InitialContext
- ConnectionFactory has all the information to connect to the JMS server: IP=X port=5445
- The client tries to connect to JMS server via IP=X port=5445
-
The problem is that the IP reported by the ConnectionFactory (X) is not visible from the "gateway" machine.
-
We know it is a network configuration problem, but I want to know if there is a way to force the connection to Y.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.1.+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.