Problem with remote connection to message queues on JBoss EAP 7

Solution In Progress - Updated -

Issue

We having problems connecting an external client to ActiveMQ (Artemis) queues defined in JBoss EAP 7.

In our test we are running JBoss EAP 7.0.6 on a Linux server (myserver.com) and our application deploys without errors.

On a separate machine, we use a client application to write messages to the EAP queues, this application uses following connection parameters:

 - INITIAL_CONTEXT_FACTORY = "org.jboss.naming.remote.client.InitialContextFactory"
 - JNDI_PROVIDER_URL = "http-remoting://myserver.com:8080";
 - QUEUE_CONNECTION_FACTORY = "java:/jms/RemoteConnectionFactory";
 - DEFAULT_USER = "user";
 - DEFAULT_PASSWORD = "password";

When starting our client application we get the following error:

2017-12-11 09:40:48,840 | ERROR  | failed to set up MQ connection factory
javax.naming.CommunicationException: Failed to connect to any server. Servers tried: [http-remoting://myserver.com:8080 (org.xnio.http.UpgradeFailedException: Invalid response code 200)]
       at org.jboss.naming.remote.client.HaRemoteNamingStore.failOverSequence(HaRemoteNamingStore.java:244)
       at org.jboss.naming.remote.client.HaRemoteNamingStore.namingStore(HaRemoteNamingStore.java:149)
       at org.jboss.naming.remote.client.HaRemoteNamingStore.namingOperation(HaRemoteNamingStore.java:130)
       at org.jboss.naming.remote.client.HaRemoteNamingStore.lookup(HaRemoteNamingStore.java:272)
       at org.jboss.naming.remote.client.RemoteContext.lookupInternal(RemoteContext.java:104)
       at org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:93)
       at org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:146)
       at javax.naming.InitialContext.lookup(InitialContext.java:417)
...
...
2017-12-11 09:40:48,862 | ERROR  | Can't lookup queue connection factory 'java:/jms/RemoteConnectionFactory'.
2017-12-11 09:40:48,863 | ERROR  | Command class myclass failed : Can't lookup queue connection factory 'java:/jms/RemoteConnectionFactory'.
java.lang.IllegalStateException: Can't lookup queue connection factory 'java:/jms/RemoteConnectionFactory'.

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 7.0 Update 6

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