I don't want to filter inside my pluggin (is very slow), I want ActiveMQ to execute my pluggin only for messages with some specific destination. There's any way to set up this kind of function inside ActiveMQ's config xml???
Andreas Gies wrote: > > Hmmm, I see. > > There is the possibility to look whether a DestinationPolicy might > help you, > but I think the easiest way to achieve what you want is with a broker > plugin > and hook into the preProcessDispatch method. > > There you can query the Destination and add the property only to the > queue > you want. If you have a setter method for the queuename(s) you you can > keep that > part variable. > > Hope that helps > Andreas > > > On Apr 24, 2009, at 3:46 PM, DanielR wrote: > >> >> >> My pluggin create a custom property (custom id) in any incomming >> message. >> >> Now I need to do the same but only in one specific queue, so i need >> to run >> the pluggin only when a message to that queue arrives. >> >> >> >> DanielR wrote: >>> >>> any ideas ? >>> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-run-a-pluggin-for-only-a-single-queue--tp23200519p23216784.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/How-to-run-a-pluggin-for-only-a-single-queue--tp23200519p23223994.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.