[
https://issues.apache.org/activemq/browse/CAMEL-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
William Tam updated CAMEL-642:
------------------------------
Attachment: patch.txt
The problem is we shouldn't create eventdrivenroute if it is an aggregator.
Otherwise, we see the race condition that marat mentioned. If we don't wrap
aggregator with an interceptor, it normally invokes the "addRoutes" method in
AggregatorType and EventDrienRoute will not be added. But if we do wrap with
an interceptor, the interceptor becomes the first node and it will create an
event drive route. Attached a patch that sets a flag in the routecontext. if
a route has been added, it won't try to add an event driven route.
> jms aggregation does not work
> -----------------------------
>
> Key: CAMEL-642
> URL: https://issues.apache.org/activemq/browse/CAMEL-642
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jms
> Reporter: Willem Jiang
> Attachments: patch.txt
>
>
> I found this issue when I test Camel 1.4.0 RC2 kit, I just add a test case
> to show the error.
> https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/AggregratedJmsRouteTest.java
> You can reproduce the error if you remove the x character from
> xtestJmsMulticastAndAggregration() method.
> BTW the test case works with the Camel 1.4.0 RC1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.