Could also take a look at composite destinations here:
http://activemq.apache.org/virtual-destinations.html

That way you can enable the second queue only when you really need it.
Producer doesn't have to know anything. Don't need extra cruft to
discard messages, purge from jmx, etc,etc.



On Wed, Nov 13, 2013 at 7:58 AM, defy <[email protected]> wrote:
> This is supposed to be dealing with producers producing to composite
> destinations so identical messages are sent to two queues A,B.   Queue A is
> consumed by consumer application A, but I know in the future I will want to
> consume from queue B by application B that is being developed. But I want to
> deploy producers now and do not want to do any changes to producer app
> clients in the future. So as a temporary solution until application B is
> finished I just want to make sure queue B is a blackhole. Setting expiry on
> message could be an option but would affect messages on queue A as the
> destination is composite.
>
> So I am basicaly left with 3 options:
>
> 1) fake consumer which drops the messages
> 2) camel interceptor /amq 5.9/ -I believed messages could be droped before
> they are persisted so this was a big plus.
> 3) jmx purge
>
> Camel interceptor seemed to be my favourite me but it adds huge overhead to
> the broker /which btw seems strange as it does nothing but only drops the
> message/. So I thought maybe my usage of it was incorrect. If there is no
> more efficient way to use camel I will just not consider this option any
> more and probably switch to jmx purge.
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-drop-equialent-tp5743182p5743191.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to