JMS Client Connection Using JNDI and HTTPS Redirect

Solution Verified - Updated -

Issue

  • Can't connect a JMS client using JNDI (or Core Server API) to Integrated Artemis Message Broker. This is on localhost right now (port 80) using the http-remoting protocol. Below error is thrown

javax.naming.CommunicationException: Failed to connect to any server. Servers tried: [http-remoting://localhost:8080 (org.xnio.http.RedirectException: XNIO000816: Redirect encountered establishing connection)] 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) at com.threatconnect.messaging.util.MessageUtil.createConnectionFactoryJNDI(MessageUtil.java:157) at com.threatconnect.messaging.util.MessageUtil.createConnectionFactoryJNDI(MessageUtil.java:134)

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 7.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.