Hi Emmanuel,

It can be done easily using the new addressing format.

For example you could use the following in the jndi.properties file.

destination.myTopic = ""ADDR:amq.topic/topic1; { create: always, node:
{ x-bindings: [ {exchange : 'amq.topic', key : 'topic2'}, {exchange :
'amq.topic', key : 'topic3'}, {exchange : 'amq.topic', key : 'topic4'}
] } }

For more information on the addressing format, refer the following,
http://people.apache.org/~jonathan/Programming-In-Apache-Qpid.html

The above link is part of the svn maintained docs that will be part of
the new website.

Regards,

Rajith

On Sun, May 16, 2010 at 1:39 PM, Emmanuel Bourg <[email protected]> wrote:
> I started using Qpid through the client API in org.apache.qpid.transport
> because it looked simple and flexible. However Rajith pointed out that this
> API was not supported, and with the removal of the examples using this API I
> feel the pressure to switch to the JMS API.
>
> Unfortunately I haven't managed to get the same result with this API yet.
> How do I bind/unbind several topics to the same private queue?
>
> With the non JMS API it's just a matter of calling exchangeBind() or
> exchangeUnbind() on the session:
>
> session.exchangeBind("myqueue", "amq.topic", "topic1", null);
>
> With the JMS API it seems significantly more convoluted. I've been able to
> get only one topic per queue so far.
>
> Thank you,
>
> Emmanuel Bourg
>
>



-- 
Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to