One Star

[resolved] Simple route to use cTalendJob

Hi,
I'm new in ESB world.
With a route I try to send a message from myActiveMQ to a subjob with TOS 6.2.1.
The code in the subjob is never executed. If I copy the doc example with the cSetHeader and the constant body it works.
the code in cProcessor is : 
context.mybody=exchange.getIn().getBody(String.class);
System.out.println("context : "+context.mybody );
//auto propagate ???
exchange.getOut().setBody(exchange.getIn().getBody());
exchange.getOut().setHeaders(exchange.getIn().getHeaders());

Please, any idea what I don't do correctly ?
What is the best way to send data to a subjob ?
Best regards,
Ben
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] Simple route to use cTalendJob

OK, my route was named useMantis, same name for the job >> doesn't work. 
1 REPLY
One Star

Re: [resolved] Simple route to use cTalendJob

OK, my route was named useMantis, same name for the job >> doesn't work.