I defined the following <route> for camel in an ActiveMQ installation:

<route>
    <from uri="activemq:inputqueue"/>
    <wireTap uri="activemq:dupequeue"/>
    <to uri="activemq:inputqueue"/>
</route>

Every incoming JMS msg should simply be duplicated. The dupe should be put
in
another queue called "dupequeue". The original jms msg should 
remain in the input queue for later retrieval (by other java program).
Thats all.

The route definition above does not work.

The "WireTap" statement is performed successfully but the jms msg is
re-inserted into the
same source queue again which cause an endless loop.

How can I avoid re-application of the route definition once it is execute
the first time?

Ben
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Simple-duplication-of-incoming-msg-with-WireTap-does-not-work-Avoid-re-execution-of-route-statement-tp510887p510887.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to