[rabbitmq-discuss] Can RabbitMQ AMQP client communicate with ActiveMQ AMQP transport?
Troy Collinsworth
troycollinsworth at gmail.com
Tue Jul 23 17:45:45 BST 2013
Trying to write a single client that can communicate with local AMQP
servers and Windows Azure Service Bus.
The connection works fine to RabbitMQ server, but fails when connecting to
ActiveMQ server. Should this work?
ActiveMQ config: <transportConnector name="amqp" uri="amqp://0.0.0.0:5672...
ConnectionFactory factory = new ConnectionFactory();
factory.setUri("amqp://system/manager@localhost:5672");
Connection connection = factory.newConnection(); //throws the following
exception
Exception in thread "main" java.io.IOException
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)
at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:360)
at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:516)
at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:533)
at RabbitMQProducer.main(RabbitMQProducer.java:36)
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error;
reason: java.io.EOFException
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)
at
com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)
at
com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:343)
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:313)
... 3 more
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273)
at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
at
com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:131)
at
com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:515)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130723/762aa39c/attachment.htm>
More information about the rabbitmq-discuss
mailing list