How to test redeliver messages?

2017-05-13 Thread carlphilipp
Hello everybody, I would like to make sure my redeliver logic is working. I do not find any feature to do that. For example, is there anyway to do: weaveById("ws-call").replace().throwException(new RuntimeException()); This will throw the exception anytime, what if I want to make it fail only on

Re: REG: Aggregator not working fine in camel version 2.8.3

2017-05-13 Thread Gowtham
Thanks Claus. I have finally figured out the EIP required for my scenario. - Gowtham Alaguraj -- View this message in context: http://camel.465427.n5.nabble.com/REG-Aggregator-not-working-fine-in-camel-version-2-8-3-tp5798536p5799455.html Sent from the Camel - Users mailing list archive a

REG: @Link annotation not writing the data for the linked records

2017-05-13 Thread Gowtham
I'm using a @Link annotation of camel-bindy to Link some of the records in my class to another class. It works fine with the headers part. But the data is not written in the file for the rest of the records. I'm using a camel-bindy version of 2.8.3. This is my csv file contents, Person.csv ID,Nam

RE: Camel Live Reload of XML routes when using routeContextRef's

2017-05-13 Thread Ronny Aerts
Hello Claus, I created jira tickets CAMEL-11272, CAMEL-11273, CAMEL-11274, CAMEL-11275. I now created a bean which sets the ReloadStrategy on the camel context. Is there another method of specifying an alternative ReloadStrategy using the camel-maven-plugin? -- vriendelijke groeten, Ronny Aert

Re: Camel Live Reload of XML routes when using routeContextRef's

2017-05-13 Thread Claus Ibsen
Hi I suggest you take a look at the existing code and see if anything needs to be changed/improve to make it work for you. Then you can provide a patch as github PR and log a JIRA. Then we can get this in the next 2.19.1 release. On Fri, May 12, 2017 at 7:54 PM, Ronny Aerts wrote: > Hello Clau

Re: In 'onException' - how to decide per-message whether to 'continue' route or not

2017-05-13 Thread Claus Ibsen
You can add onWhen where you can do a predicate to decide that per message On Sat, May 13, 2017 at 9:00 AM, Martin Lichtin wrote: > One can define a route exception handling to catch and continue: > > rd.onException(Exception.class).continued(true).process(myExceptionHandler) > > However, how c

In 'onException' - how to decide per-message whether to 'continue' route or not

2017-05-13 Thread Martin Lichtin
One can define a route exception handling to catch and continue: rd.onException(Exception.class).continued(true).process(myExceptionHandler) However, how can one decide on a per-message basis (ie. in myExceptionHandler) whether to continue with the route or not? Thanks - Martin