Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community !
I'm quiet new to Talend and i'm still learning but here's my issue :
I've a route which takes a xml message from the Queue and pass it to the cSOAP component.
I'd like to find a way to requeue the message if the SOAP call fails, is it possible ?
Should i use a job to do that ?
It currently uses a cErrorHandler but it doesn't fit my needs.
I use :
- Talend ESB 7.1.1.20181026_1147
- ActiveMQ
Thanks !
Hello !
When you says :
2) after your Exception component, add a cSetBody that will put your property into the body again, then add a cJMS component to send the message back to the queue.
cErrorHandler can't be a start Node.
Hi
Instead of gfcErrorHandler, use cOnexception --> cProcessor
Then you can call any java code you want, in cProcessor or from a bean for easier development.
Hi !
Thanks for your help, i'll try to make it work following your guidance. I'm not used to ESB routes so i need to learn
use a cSetProperty to store the initial message body into a property
Not sure how i can do that ....
cProcessor :
exchange.getIn().setProperty( "pInitialBody", exchange.getIn().getBody(String.class)) ;