[rabbitmq-discuss] RabbitMQ and Qpid Java Client

92 views
Skip to first unread message

SteAp

unread,
Mar 8, 2010, 12:56:24 PM3/8/10
to rabbitmq...@lists.rabbitmq.com

Hey,

I'm playing around with RabbitMQ 1.7.2 and the SVN version (0.7) of the Qpid
Java Client (JMS). I did create the vhost, a user and set permission. Now
when trying to connect I get the following error:

[java] Caused by: org.apache.qpid.AMQConnectionFailureException: Unable
to Connect
[java] at
org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:619)
[java] at
org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:276)
[java] ... 4 more
[java] Caused by: org.apache.qpid.AMQException: cannot connect to
broker [error code 504: channel error]
[java] at
org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:209)
[java] at
org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:760)
[java] at
org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:546)
[java] ... 5 more

Could be due to an AMQP version mismatch; the client works fine with Qpid
which is at AMQP 0-10 while RabbitMQ is at AMQP 0-9 (?). But I'm not sure
about this...
Has anybody seen this error before or an idea how to fix it?

Thanks!
Cheers,
Stefan
--
View this message in context: http://old.nabble.com/RabbitMQ-and-Qpid-Java-Client-tp27824111p27824111.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq...@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Alexis Richardson

unread,
Mar 9, 2010, 9:43:23 AM3/9/10
to SteAp, rabbitmq...@lists.rabbitmq.com
Stefan,

Your assumption is correct. The Qpid Java client that speaks AMQP
0-10 will not work with the RabbitMQ broker which speaks 0-8.

Your options are as follows:

1. Use the RabbitMQ Java client, which also lets you use things like
this: http://www.infoq.com/news/2010/03/amqp_support_spring_integration

2. Use the Qpid JMS client set for AMQP 0-8.

3. Use the OpenAMQ JMS client

4. Use the Qpid JMS client set for AMQP 0-91 and the RabbitMQ 0-91
build (from source).

alexis

Carl Trieloff

unread,
Mar 9, 2010, 9:48:51 AM3/9/10
to rabbitmq...@lists.rabbitmq.com
On 03/09/2010 09:43 AM, Alexis Richardson wrote:
> Stefan,
>
> Your assumption is correct. The Qpid Java client that speaks AMQP
> 0-10 will not work with the RabbitMQ broker which speaks 0-8.
>

Actually the Qpid Java client can speak 0-8, 0-9, (0-91 in the new
0-6 release) and 0-10 of AMQP.

regards
Carl.

Carl Trieloff

unread,
Mar 9, 2010, 9:52:26 AM3/9/10
to rabbitmq...@lists.rabbitmq.com
On 03/09/2010 09:48 AM, Carl Trieloff wrote:
> On 03/09/2010 09:43 AM, Alexis Richardson wrote:
>
>> Stefan,
>>
>> Your assumption is correct. The Qpid Java client that speaks AMQP
>> 0-10 will not work with the RabbitMQ broker which speaks 0-8.
>>
>>
> Actually the Qpid Java client can speak 0-8, 0-9, (0-91 in the new
> 0-6 release) and 0-10 of AMQP.
>
>


Here is the link for 0.5 http://qpid.apache.org/amqp-compatibility.html

In 0.6, the Java client also support 0-9-1 and the Java broker also
supports 0-10.

Alexis Richardson

unread,
Mar 9, 2010, 9:54:50 AM3/9/10
to cctri...@redhat.com, rabbitmq...@lists.rabbitmq.com
Thanks Carl,

I was not sure exactly how to set up Qpid's Java client to speak the
different protocol versions. Is there anything that Stefan would need
to know, based on his original question?

Cheers

alexis

Carl Trieloff

unread,
Mar 9, 2010, 10:03:42 AM3/9/10
to Alexis Richardson, rabbitmq...@lists.rabbitmq.com

It would be best to just post the issue to the us...@qpid.apache.org
and one of the Java guys can help Stefan directly. It is controlled
with the connection string is my understanding.

Carl.

Alexis Richardson

unread,
Mar 9, 2010, 10:09:51 AM3/9/10
to cctri...@redhat.com, rabbitmq...@lists.rabbitmq.com
Thanks!

John Mann

unread,
Mar 9, 2010, 10:18:55 AM3/9/10
to rabbitmq...@lists.rabbitmq.com
I too had trouble with the AMQP version incompatibilities between OpenAMQ and RabbitMQ.  I was able to modify the OpenAMQ build to be compatible with the 0-8 AMQP spec.  This article was helpful:

http://www.lshift.net/blog/2009/03/16/openamqs-jms-client-with-rabbitmq-server

However, I didn't like having to use a "tainted" OpenAMQ build.  So, I decided to code to the RabbitMQ Java Client API.  I'm not using JMS yet, but I did understand RabbitMQ at a deeper level.

Does anyone know when OpenAMQ and RabbitMQ will speak the same version of AMQP?   Or am I only dreaming?

-John

Alexis Richardson

unread,
Mar 9, 2010, 10:25:59 AM3/9/10
to John Mann, rabbitmq...@lists.rabbitmq.com
John

On Tue, Mar 9, 2010 at 3:18 PM, John Mann <jm...@versatile.com> wrote:
>
> Does anyone know when OpenAMQ and RabbitMQ will speak the same version of
> AMQP?   Or am I only dreaming?

You are not dreaming, it's something we have done a LOT of work on.
You can currently build an 0-91 broker from source. There is still
some work to do before this can get into the main release.

alexis

John Mann

unread,
Mar 9, 2010, 10:50:23 AM3/9/10
to rabbitmq...@lists.rabbitmq.com
Alexis,

Thanks for the update.  I'm sorry if my the tone of my previous message sounded judgmental.  That wasn't my intent.

I'm looking forward to next release.

-John
--
-JC
Reply all
Reply to author
Forward
0 new messages