Hi, I am new to Talend ESB and i got requirement..I have one service in route that i need to call in the DI Job. lets say i am setting the file service in route and i need to call the file from talend job,So i would like to set the exception when any error occoured in talend di job and send the mail to the required person with the exception message.After setting the mail the route should get stopped..Any one could suggest me the process of setting the exception and killing the route. Thanks, Avinash
This is a tricky thing to handle. From experience, the best way to stop a route is to do it from another route. So I would recommend directing a message to an endpoint in the route you want to stop which points to a "stopping route". This route could handle an error message for you and stop the route you wish stopped. This page should help you when it comes to stopping the route. A thing to remember is that Talend routes are really Camel Contexts, not routes. The routes sit inside the Camel Context. Keep that in mind when testing this. I set myself almost this very same challenge when I first started working with Talend ESB and it took me ages to crack. Mainly because I thought that I could do it from within the same Camel Context. You can, but it takes a lot of code to do it elegantly.