<div>Trying to write a single client that can communicate with local AMQP servers and Windows Azure Service Bus.</div><div><br></div><div>The connection works fine to RabbitMQ server, but fails when connecting to ActiveMQ server. Should this work?</div><div><br></div><div>ActiveMQ config:&nbsp;&lt;transportConnector name="amqp" uri="amqp://0.0.0.0:5672...</div><br><div><div>&nbsp; &nbsp; ConnectionFactory factory = new ConnectionFactory();</div></div><div><div>&nbsp; &nbsp; factory.setUri("amqp://system/manager@localhost:5672");</div></div><div><div>&nbsp; &nbsp; Connection connection = factory.newConnection(); //throws the following exception</div></div><div><br></div><div><div>Exception in thread "main" java.io.IOException</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:360)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:516)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:533)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at RabbitMQProducer.main(RabbitMQProducer.java:36)</div><div>Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.io.EOFException</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:343)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:313)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>... 3 more</div><div>Caused by: java.io.EOFException</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:131)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:515)</div></div><div><br></div>