You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by gwenyboy <gw...@notarius.com> on 2007/11/23 18:24:23 UTC
HttpsTransport cannot be cast to HttpClientTransport
Hello,
I trie to make a standalone java client to connect to ActiveMQ in https (it
works in http):
My config:
activemq.xml:
<transportConnector name="https" uri="https://localhost:8081"/>
my client:
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("https://localhost:8081");
Connection connection = connectionFactory.createConnection(login, pwd);
And, when i run the client, I have this error:
Could not create Transport. Reason: java.lang.ClassCastException:
org.apache.activemq.transport.https.HttpsTransport cannot be cast to
org.apache.activemq.transport.http.HttpClientTransport
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:33)
I saw in the ActiveMQ code that HttpsTransport don't extends
HttpClientTransport,
So, is it possible to use HTTPS with ActiveMQ without modified ActiveMQ
code?
--
View this message in context: http://www.nabble.com/HttpsTransport-cannot-be-cast-to-HttpClientTransport-tf4862880s2354.html#a13915825
Sent from the ActiveMQ - User mailing list archive at Nabble.com.