How can I include common behavior in several routes?

2018-05-10 Thread Steve973
Hello. If I want, for example, to have several of my routes to be "status aware", how might I achieve this? What I mean by "status aware" is that the route will start, notify a component that the workflow has begun, then it will conduct route-specific logic, and when that is complete, it will not

On completion failure when doing file processing

2018-05-10 Thread Hugo Marcelino
Hello, I have inherited some code that is running Apache Camel and was asked if it was possible to send a notification whenever a processed file failed. I've found two links that looked promising to me. 1. https://issues.apache.org/jira/browse/CAMEL-3372 2. https://github.com/apache/camel/bl

Re: How can I include common behavior in several routes?

2018-05-10 Thread Quinn Stevenson
Have you looked at using a RoutePolicy? http://camel.apache.org/routepolicy.html > On May 10, 2018, at 8:26 AM, Steve973 wrote: > > Hello. If I want, for example, to have several of my routes to be "status > aware", how might I achieve this? What I

Re: On completion failure when doing file processing

2018-05-10 Thread Quinn Stevenson
Have you tried adding bridgeErrorHandler=true to the sftp operation? > On May 10, 2018, at 10:35 AM, Hugo Marcelino > wrote: > > Hello, > > I have inherited some code that is running Apache Camel and was asked if it > was possible to send a notification whenever a processed file failed. I'v

Re: How can I include common behavior in several routes?

2018-05-10 Thread Owain McGuire
Steve, My rudimentary reading of your question would suggest to me that what you are talking about is an common InOut route. So define a direct:commonRoute and then use it in the applicable routes. Or if it is more sophisticated, look at using a RouteBuilder class. HTH. O. > aware", how mi

Re: How can I include common behavior in several routes?

2018-05-10 Thread Jan Bednář
Steve already got answer on SO. https://stackoverflow.com/questions/50275601/how-can-i-include-common-behavior-in-several-apache-camel-routes