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-subscr...@qpid.apache.org