Hi Frank, Assuming that by the word "producer" you mean the final destination for messages. So the message flow is: client->message consumer(Camel)->producers(A,B etc).
So the question would be "How to dynamically decide target endpoints ?". Look at the Control Bus EIP in Camel. It is mean for dynamic control of the Camel routes, based on the conditions you set. Very similar to the requirements you have mentioned. http://camel.apache.org/controlbus.html. It has limited options but the concept is useful for your scenario. Use JMX to implement your own control bus. And then use the Dynamic Router: http://camel.apache.org/dynamic-router.html Resequencer is for order _incoming_ messages. But you want to order outgoing destinations(A,B etc), not messages. So it may not work. Regards, Prajod -----Original Message----- From: Charles Moulliard [mailto:[email protected]] Sent: Monday, August 11, 2014 11:45 AM To: [email protected] Subject: Re: Dynamic prioritizing of messages Hi Frank, If you use ActiveMQ as broker, it supports "consumer priority - http://activemq.apache.org/consumer-priority.html/http://activemq.apache.org/how-can-i-support-priority-queues.html" and will reorder the messages in the dispatch queue of the client based on the JMSPriority value which is set by the different producers. Regards, On Sun, Aug 10, 2014 at 12:01 PM, moorsel <[email protected]> wrote: > New to Camel and I would like to know how to solve this: i've got > multiple client producing messages to a queue. The consumer that has > to process the messages from the queue has to serve the producers > based a priority list which is not fixed but could change dynamically > (so now it could be that producer A has highest prio but a some > seconds later it could be that producer B has highest prio). Prios are > set manually through a GUI and stored in a DB. > > I thought to use the resequenser EIP for this purpose but I am not > sure if the dynamic nature of my prioritizing schema fits with the > design of the resequenser. Is the resequenced suitable for such a > prioritizing scheme? > (in > conjunction with a custom bean reading the current prio form the DB). > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-prioritizing-of-messages-tp5 > 754989.html Sent from the Camel - Users mailing list archive at > Nabble.com. > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
