[rabbitmq-discuss] SSL Client using spring
Gary Russell
grussell at gopivotal.com
Tue Dec 10 17:04:59 GMT 2013
You didn't show your wiring, but clearly you can see from the stack trace
that the Spring factory is delegating to the rabbit client factory, and
it's using SSL...
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl
.connect(SSLSocketImpl.java:564)
at
com.rabbitmq.client.ConnectionFactory.createFrameHandler(ConnectionFactory.java:445)
at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:504)
at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:545)
at
org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:181)
... so there must be something wrong with your configuration.
On Tue, Dec 10, 2013 at 11:41 AM, PATAR, SAGAR <sp345s at att.com> wrote:
> Thanks Gary ..
>
>
>
> I tried as you suggested below by wiring my CF to the spring …It still
> doesn’t work ..
>
>
>
> I was able to get it working with a simple java but not through spring …
>
>
>
> Pl. find the log and the context file attached ..
>
>
>
> Appreciate all the help..
>
> Thanks,
>
> Sagar
>
>
>
> *From:* rabbitmq-discuss [mailto:
> rabbitmq-discuss-bounces at lists.rabbitmq.com] *On Behalf Of *Gary Russell
> *Sent:* Friday, December 06, 2013 1:30 PM
> *To:* Discussions about RabbitMQ
> *Subject:* Re: [rabbitmq-discuss] SSL Client using spring
>
>
>
> Wire up your rabbit connection factory as you wish, and then provide a
> reference to it to the spring connection factory...
>
>
>
> <rabbit:connection-factory id="connectionFactory"
> connection-factory="rabbitFactory" ... />
>
>
>
> On Fri, Dec 6, 2013 at 1:22 PM, PATAR, SAGAR <sp345s at att.com> wrote:
>
> I don’t see any option to use SSL and pass the cert / keystore using
> spring amqp … Can you pl. help me with some examples …
>
> I was able to get it working using a simple java class ..but cant see
> options with spring amqp
>
>
>
> Thanks,
>
> Sagar
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131210/5b63d110/attachment.html>
More information about the rabbitmq-discuss
mailing list