Configure HornetQ in JBoss EAP 6 to work with NAT

Solution Unverified - Updated -

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,
  1. The client creates an InitialContext and connects to Y port 4447
  2. The ConnectionFactory is created via the InitialContext
  3. ConnectionFactory has all the information to connect to the JMS server: IP=X port=5445
  4. 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content