February
9th,
2018
Just a post to note that if you are running multiple aggregators in your context, then you will need to ensure you specify different aggregation repositories.
The repositoryName
is used for the underlying table names. If two aggregations are using the same repository there is the possiblity that they willl interfere with each other. Therefore it is essential that if you need two aggreation repositories that you specify another JdbcAggregationRepository
bean with a different repositoryName
.
References
- http://camel.apache.org/sql-component.html
- https://github.com/apache/camel/blob/master/components/camel-sql/src/main/java/org/apache/camel/processor/aggregate/jdbc/JdbcAggregationRepository.java
- https://github.com/apache/camel/blob/master/components/camel-sql/src/main/java/org/apache/camel/processor/aggregate/jdbc/JdbcAggregationRepository.java#L217