JMS Client Connection Using JNDI and HTTPS Redirect
Issue
- Can't connect a
JMS clientusing JNDI (or Core Server API) to IntegratedArtemis Message Broker. This is on localhost right now (port 80) using thehttp-remotingprotocol. 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
