You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by jun yang <sl...@gmail.com> on 2011/05/20 12:10:36 UTC
how to bind exchange to exchange like bind exchange to queue in the
same broker?
for example: topic exchange ex-A,ex-A2,ex-A3, i want to bind
ex-A->ex-A2(binding-key='A2'), ex-A->ex-A3('binding-key='A3'), is this
possible?
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: how to bind exchange to exchange like bind exchange to queue in
the same broker?
Posted by jun yang <sl...@gmail.com>.
2011/5/23 Gordon Sim <gs...@redhat.com>:
> On 05/22/2011 04:59 AM, jun yang wrote:
>>
>> thanks for the answer.
>> but the solution require the subscriber know too much of message detail.
>> since my poor english,i am sorry that i don't express the meaning
>> clearly, i do try again with the picture.
>> in the picture,consumer-A22 just subscribe to exchange-A22,normally,it
>> will comsue all message that send to exchange-A22,need not know what
>> the subject of message is.
>
> So there is a 'fixed', i.e. relatively static, list of consumers and you
> want to configure the set of messages these consumers get, i.e. the routing
> rules, external to the consumer processes?
>
yes,it is the case.consumer-A22 always subcribe to exchange-A22,and
some other program may dynamic create link to exchange-A22,or dynamic
delete some link to exchange-A22.
> Why not use a queue for each consumer and bind that? I.e. create queue-A22
> etc, create appropriate bindings such that each consumer gets the messages
> required then start the consumer.
>
yeap,thanks for the answer, it maybe is the practical solution for
now,though i am thinking the link between exchange would be
a more natruelly and intuitive approach, i bet all the function has
almost implemented in qpid,just no api provide now.
i would miss the function of qpid-route,you can bind queue to
exchange,exchange to exchange,exchange to queue.
the problem of queue is it's shared,so it is different from exchange,
think about there will be some dynamic subscriber(consumer
A22-1,A22-xx) of exchange-A22.
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: how to bind exchange to exchange like bind exchange to queue
in the same broker?
Posted by Gordon Sim <gs...@redhat.com>.
On 05/22/2011 04:59 AM, jun yang wrote:
> thanks for the answer.
> but the solution require the subscriber know too much of message detail.
> since my poor english,i am sorry that i don't express the meaning
> clearly, i do try again with the picture.
> in the picture,consumer-A22 just subscribe to exchange-A22,normally,it
> will comsue all message that send to exchange-A22,need not know what
> the subject of message is.
So there is a 'fixed', i.e. relatively static, list of consumers and you
want to configure the set of messages these consumers get, i.e. the
routing rules, external to the consumer processes?
Why not use a queue for each consumer and bind that? I.e. create
queue-A22 etc, create appropriate bindings such that each consumer gets
the messages required then start the consumer.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: how to bind exchange to exchange like bind exchange to queue in
the same broker?
Posted by jun yang <sl...@gmail.com>.
thanks for the answer.
but the solution require the subscriber know too much of message detail.
since my poor english,i am sorry that i don't express the meaning
clearly, i do try again with the picture.
in the picture,consumer-A22 just subscribe to exchange-A22,normally,it
will comsue all message that send to exchange-A22,need not know what
the subject of message is.
it is like federation of two broker somehow,the qpid-route has almost
the same concept implementation,but it is not for use in the same
broker,it impose the two exchange linked must have the same name, and
there is no api in client for doing such things.
2011/5/21 Rajith Attapattu <ra...@gmail.com>:
> What you describe can easily be achieved through Topics.
>
> Each subscriber can subscribe to a Topic at the level they are interested.
> Ex
>
> A1 subscriber binds to A1.*
> A1-1 subscriber binds to A1.1.*
>
> The producer application then sends messages with the subject A1, B1,
> A1.1, B1.2, B2.1 ...etc
> Please note we use "." to denote the level instead "-".
>
> If you have more questions, please free to ask on the list.
>
> Regards,
>
> Rajith
>
> On Fri, May 20, 2011 at 11:30 PM, jun yang <sl...@gmail.com> wrote:
>> like a organization A has department A1,A2,A1 has sub department A1-1,A1-2,
>> when mesage with subject A1-1 send to A, i want to A1 and A1-1
>> subscribers can receive such a message.
>> any anoter solution to achive that?
>>
>> 2011/5/20 Steve Huston <sh...@riverace.com>:
>>>> for example: topic exchange ex-A,ex-A2,ex-A3, i want to bind
>>>> ex-A->ex-A2(binding-key='A2'), ex-A->ex-A3('binding-key='A3'), is this
>>>> possible?
>>>
>>> No, not as you've described. What are you trying to accomplish?
>>>
>>> -Steve
>>>
>>> --
>>> Steve Huston, Riverace Corporation
>>> Total Lifecycle Support for Your Networked Applications
>>> http://www.riverace.com
>>>
>>>
>>> ---------------------------------------------------------------------
>>> Apache Qpid - AMQP Messaging Implementation
>>> Project: http://qpid.apache.org
>>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project: http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
Re: how to bind exchange to exchange like bind exchange to queue in
the same broker?
Posted by Rajith Attapattu <ra...@gmail.com>.
What you describe can easily be achieved through Topics.
Each subscriber can subscribe to a Topic at the level they are interested.
Ex
A1 subscriber binds to A1.*
A1-1 subscriber binds to A1.1.*
The producer application then sends messages with the subject A1, B1,
A1.1, B1.2, B2.1 ...etc
Please note we use "." to denote the level instead "-".
If you have more questions, please free to ask on the list.
Regards,
Rajith
On Fri, May 20, 2011 at 11:30 PM, jun yang <sl...@gmail.com> wrote:
> like a organization A has department A1,A2,A1 has sub department A1-1,A1-2,
> when mesage with subject A1-1 send to A, i want to A1 and A1-1
> subscribers can receive such a message.
> any anoter solution to achive that?
>
> 2011/5/20 Steve Huston <sh...@riverace.com>:
>>> for example: topic exchange ex-A,ex-A2,ex-A3, i want to bind
>>> ex-A->ex-A2(binding-key='A2'), ex-A->ex-A3('binding-key='A3'), is this
>>> possible?
>>
>> No, not as you've described. What are you trying to accomplish?
>>
>> -Steve
>>
>> --
>> Steve Huston, Riverace Corporation
>> Total Lifecycle Support for Your Networked Applications
>> http://www.riverace.com
>>
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project: http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: how to bind exchange to exchange like bind exchange to queue in
the same broker?
Posted by jun yang <sl...@gmail.com>.
like a organization A has department A1,A2,A1 has sub department A1-1,A1-2,
when mesage with subject A1-1 send to A, i want to A1 and A1-1
subscribers can receive such a message.
any anoter solution to achive that?
2011/5/20 Steve Huston <sh...@riverace.com>:
>> for example: topic exchange ex-A,ex-A2,ex-A3, i want to bind
>> ex-A->ex-A2(binding-key='A2'), ex-A->ex-A3('binding-key='A3'), is this
>> possible?
>
> No, not as you've described. What are you trying to accomplish?
>
> -Steve
>
> --
> Steve Huston, Riverace Corporation
> Total Lifecycle Support for Your Networked Applications
> http://www.riverace.com
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
RE: how to bind exchange to exchange like bind exchange to queue in the same broker?
Posted by Steve Huston <sh...@riverace.com>.
> for example: topic exchange ex-A,ex-A2,ex-A3, i want to bind
> ex-A->ex-A2(binding-key='A2'), ex-A->ex-A3('binding-key='A3'), is this
> possible?
No, not as you've described. What are you trying to accomplish?
-Steve
--
Steve Huston, Riverace Corporation
Total Lifecycle Support for Your Networked Applications
http://www.riverace.com
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org