@Produce, Interfaces, and Notification Events

2017-11-07 Thread Garner, Kevin
We're using the event notification framework in Camel to perform logging of certain route metrics based on ExchangeSentEvents. Generally this works just fine as long as the route we are monitoring is part of a larger route where it is being called via something like a to(). If the sub-route is u

Re: Camel exception handling

2017-11-07 Thread David Hoffer
I did find the problem and the solution. The problem is that Camel always rolled back the file at the from SFTP URI so the entire route is repeated indefinitely. There was no way (I could find) to configure Camel to break out of this route with an exception when the unmarshal bean threw an except

Re: Camel exception handling

2017-11-07 Thread Claus Ibsen
You cannot do that, but you can track the failures handled attribute in JMX which we be incremented when you handle that exception. On Mon, Nov 6, 2017 at 8:22 PM, David Hoffer wrote: > I’m having trouble getting the exception behavior I’m looking for. What I > expected this to do is when any e

Re: If-Modified-Since header causing 500 errors with Camel 2.18.4

2017-11-07 Thread Claus Ibsen
If you use http/http4 components etc there is an option to turn of throwing exception on error. See the documentation. On Mon, Nov 6, 2017 at 11:24 PM, Rajpal Paryani wrote: > Hi, > > We have recently switched to Apache Camel 2.18.4 in our web service > from the older version 2.11.1. We use camel

Re: PropertyInject defaultValue doesn't work with zero-length string

2017-11-07 Thread Claus Ibsen
Hi No as the annotation requires a value and thus "" is like not in use. We would need to add a new attribute required boolean true|false so you can set it to required = false. You are welcome to log a JIRA and work on a github PR if you fancy On Tue, Nov 7, 2017 at 4:28 PM, Steve Huston wrote:

PropertyInject defaultValue doesn't work with zero-length string

2017-11-07 Thread Steve Huston
I am using Camel 2.19.1 and have a question on @PropertyInject with a default value. I have the following: public class MyStuff { @PropertyInject(value="testVal", defaultValue="") private String testVal; ... } When this class is instantiated and injected, if there is no 'testVal" in pro