Proposal : camel-rabbitmq : RabbitMQProducer to override EXCHANGE_NAME/ROUTING_KEY headers if bridgeEndpoint

2020-01-20 Thread Jonathan Schoreels
Hi, Currently, the camel-rabbitmq endpoints, if set as "bridgeEndpoint", ignores the following exchange's headers : EXCHANGE_NAME & ROUTING_KEY, but it keeps the previous headers setted, which leak information about the origin of the event. For example, if my message comes from Exchange A, I trans

JdbcAggregationRepository doesn't preserve properties : Feature/Bug ?

2017-04-12 Thread Jonathan Schoreels
e is no user guide to use JdbcAggregationRepository in the book (Hawt example) or a "pretty-doc" in http://camel.apache.org/aggregator.html. Or maybe there is other more standard way to aggregate in a persistent repository that I don't know yet ? Thank you, Jonathan Schoreels

Re: JdbcAggregationRepository doesn't preserve properties : Feature/Bug ?

2017-04-12 Thread Jonathan Schoreels
Is it allowed to open pull request just to add java doc, or would you prefer to do it yourself ? On 2017-04-12 13:31, Claus Ibsen wrote: Yes only body + headers is stored that is by design On Wed, Apr 12, 2017 at 1:19 PM, Jonathan Schoreels wrote: Hello, I've been

Re: Multiple from end points traversing to different routes

2017-04-14 Thread Jonathan Schoreels
You could use pollEnrich in the 7 route to be triggered by a multicasted scheduler. Something like : from("quartz://groupName/timerName?cron=0+0/5+12-18+?+*+MON-FRI&trigger.timeZone=Europe/Stockholm") .multicast() .multicast().parallelProcessing().to("direct:httpConsumer", "direct:ftpC

Re: JdbcAggregationRepository doesn't preserve properties : Feature/Bug ?

2017-04-23 Thread Jonathan Schoreels
onathan > > Did you get a chance to do this? Its good to help the project if users > can get involved and provide fixes/improvments. And a small javadoc > contribution is a great place to start. > > On Wed, Apr 12, 2017 at 1:34 PM, Jonathan Schoreels > wrote: > > Is it all

Re: JdbcAggregationRepository doesn't preserve properties : Feature/Bug ?

2017-04-23 Thread Jonathan Schoreels
(The pull request has been made : https://github.com/apache/camel/pull/1654) Jonathan 2017-04-23 16:13 GMT+02:00 Jonathan Schoreels : > Hi Claus, > > Thank you for the reminder, I had some other test with the repository and > found it another feature that seems to be normal : if th

Aggregations, Transactions & "Exchange Processed"

2017-05-03 Thread Jonathan Schoreels
uot;symmetrically" ? For example, to ensure that exchanges in route 1 & 2 are considered "processed" and that a fresh new one comes from the repo ? Often, we can see "if(oldExchange == null) exchange = newExchange", but is it really the best way to implements aggregation strategy ? Shouldn't we create a whole new exchange, with its own transaction & lifecycle ?* Thank you in advance. Jonathan Schoreels

Good / Adviced way to poll an entire folder at scheduled moment

2017-05-08 Thread Jonathan Schoreels
Hi. I would like to know, in your experience, what's the best way to poll an entire folder/remote folder, at an regular interval ? It could seems quite easy, since the the file consumer can be used as a batch consumer, that a scheduler can be used with it, but I have some limitation each time :

Re: Good / Adviced way to poll an entire folder at scheduled moment

2017-05-14 Thread Jonathan Schoreels
to couple that to a pollenrich or whatever the mean to trigger the consumption at a certain moment, based on another message, for example. Jonathan 2017-05-08 16:49 GMT+02:00 Jonathan Schoreels : > Hi. > > I would like to know, in your experience, what's the best way to poll an &g

CamelContext Fails to start when consuming from a down database

2017-05-16 Thread Jonathan Schoreels
artup sql route when the DB may be down, for example if after a maintenance, the karaf is faster than the DB to restart. A workaround found is to use a timer before, and the sql query in a pollEnrich just after, but it's quite dirty. You can find the whole stack here : https://pastebin.com/XvYpCjZK Jonathan Schoreels

Re: CamelContext Fails to start when consuming from a down database

2017-05-16 Thread Jonathan Schoreels
It looks like it comes from the exception is coming from the JdbcAggregationRepository, in fact. 2017-05-16 15:39 GMT+02:00 Jonathan Schoreels : > Hi all, > > It seems that if a database is unreachable, and if the camelcontext > contains a sql consumer, the camel context won&#

ZipAggregationStrategy doesn't use Header for polled file exchange

2015-09-08 Thread Jonathan Schoreels
Hi, Just reporting this little "inconsistence" I've spot. Version used to test : 2.15.3 of camel, 1.7 Java. Take this example : http://pastebin.com/0HrSt0iv The Route 1 set the header CamelFileName to Transformed.txt, and the Route 2 to Transformed2.txt. The both are sent to a ZipAggregationStra

Re: Multiple consumers of a same directory

2015-09-08 Thread Jonathan Schoreels
Instead of having multiple consumers for one file, why not just use the Load Balancer Pattern of Camel ? http://camel.apache.org/load-balancer.html -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-consumers-of-a-same-directory-tp5771323p5771358.html Sent from the Cam