you could look at creating your own destination filter in a destination interceptor. This is how virtual destinations are implemented. see: http://activemq.apache.org/virtual-destinations.html and http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/region/DestinationInterceptor.html In intercept, it your destination matches, create and return a DestinationFilter that does what you want just for that destination.
2009/4/24 DanielR <romero...@gmail.com> > > 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. > > -- http://blog.garytully.com Open Source SOA http://FUSESource.com