Did you set appropriate certificates to be used? Take a look at this unit
test for an example

https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/transport/https/HttpsJmsSendAndReceiveTest.java?hb=true


Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Dec 21, 2011 at 7:44 PM, manua <agarwal.m...@gmail.com> wrote:

> HI,
>
> I am trying to getting java consumer work over https.
>
> In my aactivemq.xml at broker side, i have configured ssl and https
> transport connectors,
>
> <transportConnector name="https" uri="https://localhost:8443"/>
>
> At the consumer side (java client), I am specifying the connection factory
> as,
>
> ActiveMQConnectionFactory factory =
>               new ActiveMQConnectionFactory("https://localhost:8443";);
>
> and while compiling/executing specified the following jar files,
>
> /usr/bin/java -cp
>
> .:lib/activemq-core-5.5.0.jar:lib/javaee.jar:lib/com.zwitserloot.json.jar:lib/slf4j-api-1.5.11.jar:lib/slf4j-log4j12-1.5.11.jar:lib/log4j-1.2.14.jar:lib/commons-logging-1.1.1.jar:lib/commons-codec-1.4.jar:lib/commons-httpclient-3.0.jar:lib/activemq-optional-5.5.0.jar:lib/*
> amqTextMessage
>
> This code seems to hang at the statement,
>       connection = factory.createConnection();
>
> If in place of https I specify ssl, then it works fine.
>
> What am I doing wrong.Also, is there a document specifying the https
> configuration at the client side.
>
> Please let me know your inputs.
>
> Thanks
> Manu
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Java-client-doesnt-work-with-https-tp4222791p4222791.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to