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

2018-05-11 Thread Steve973
Thanks, everyone. I did get an answer on SO, and it was also what Quinn Stevenson suggested. I am creating a custom RoutePolicy class that extends from RoutePolicySupport. In onExchangeBegin and onExchangeDone, I am creating a new exchange and sending it to the status endpoints via a fluent

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

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

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

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