Issue with EAP7 JMS with F5
I'm trying to get a standalone Java application (RH JMS quickstart) to send and receive JMS messages to a JBoss (EAP 7) instance. Everything works fine when I test locally on the same network. When I deploy JBoss to our cloud I have issues.
The current cloud setup is simple. It's just an F5 that listens on port 443 and forwards the requests to the JBoss server on 8080. We terminate SSL at the F5. I can connect to the JMS queue but then get an error. It looks like after I establish the initial JNDI lookup the remote destination IP is the local IP address of the JBoss server and not the hostname of the F5. In the end I get a "failed to session factory" on the client side. I enabled debugging on the client and this is what I see:
DEBUG: Remote destination: /10.193.1.244:8080
I think that should be the hostname of the F5 and not the local IP of the JBoss server.
Here is the entire stack. Any help would be appreciated.
Bad level value for property: org.apache.activemq.level
Bad level value for property: jboss.naming.client.level
Oct 02, 2017 12:13:37 PM org.xnio.Xnio
INFO: XNIO version 3.4.3.Final-redhat-1
Oct 02, 2017 12:13:37 PM org.xnio.nio.NioXnio
INFO: XNIO NIO Implementation Version 3.4.3.Final-redhat-1
Oct 02, 2017 12:13:37 PM org.jboss.remoting3.EndpointImpl
INFO: JBoss Remoting version 4.0.21.Final-redhat-1
Oct 02, 2017 12:13:37 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
INFO: Attempting to acquire connection factory "jms/RemoteConnectionFactory"
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Oct 02, 2017 12:13:39 PM org.apache.activemq.artemis.utils.UUIDGenerator generateDummyAddress
DEBUG: using dummy address ffffffe5:3d:fffffff4:4b:57:23
Oct 02, 2017 12:13:39 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
INFO: Found connection factory "jms/RemoteConnectionFactory" in JNDI
Oct 02, 2017 12:13:39 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
INFO: Attempting to acquire destination "jms/queue/radplus"
Oct 02, 2017 12:13:39 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
INFO: Found destination "jms/queue/radplus" in JNDI
Oct 02, 2017 12:13:39 PM org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl getConnectionWithRetry
DEBUG: Trying reconnection attempt 0/1
Oct 02, 2017 12:13:39 PM org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl createTransportConnection
DEBUG: Trying to connect with connectorFactory = org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory@121c9d6, connectorConfig=TransportConfiguration(name=null, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEnabled=true&port=8080&httpPpgradeEndpoint=http-acceptor&host=10-193-1-244
Oct 02, 2017 12:13:39 PM org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector start
DEBUG: Started Netty Connector version 4.0.35.Final-redhat-1
Oct 02, 2017 12:13:39 PM org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector createConnection
DEBUG: Remote destination: /10.193.1.244:8080
Oct 02, 2017 12:14:00 PM org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl openTransportConnection
DEBUG: Connector towards NettyConnector [host=10.193.1.244, port=8080, httpEnabled=false, httpUpgradeEnabled=true, useServlet=false, servletPath=/messaging/ActiveMQServlet, sslEnabled=false, useNio=true] failed
Exception in thread "main" javax.jms.JMSRuntimeException: Failed to create session factory
at org.apache.activemq.artemis.jms.client.JmsExceptionUtils.convertToRuntimeException(JmsExceptionUtils.java:88)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:262)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:248)
at org.jboss.as.quickstarts.jms.HelloWorldJMSClient.main(HelloWorldJMSClient.java:98)
Caused by: javax.jms.JMSException: Failed to create session factory
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:727)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:255)
... 2 more
Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:778)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:724)
... 3 more