5 Replies Latest reply on Mar 31, 2009 8:11 AM by jamie archibald

    concurrentConsumers in JMS endpoint creating multiple messages

    jamie archibald Apprentice

      I have a camel route as follows:

       

      from("activemq:topic:MyTopic?concurrentConsumers=3&deliveryPersistent=false")

      to("activemq:topic:AnotherTopic")

       

      The messages that are being delivered to the MyTopic are as follows:

       

      Msg1

      Msg2

      Msg3

       

      And the output to AnotherTopic is:

       

      Msg1

      Msg1

      Msg1

      Msg2

      Msg2

      Msg2

      Msg3

      Msg3

      Msg3

       

       

      For some reason the concurrentConsumers option is telling camel to triplicate the message across 3 threads, thus in turn producing 3 of the same message on AnotherTopic.

       

      Not sure why this is happening. Any help is much appreciated.