sorry, there's some code missing in my previous post, and here's the complete
code:
ProducerTemplate producer = exchng.getContext().createProducerTemplate();
it = taskList.iterator();
while (it.hasNext()) {
t = (Task) it.next();
mcaSenderProcessor.setTask(t);
messageRef =
producer.request(smppUri,mcaSenderProcessor).getIn().getHeader("CamelSmppId",
String.class);
}
and this inside the sender processor:
private Task task;
public void process(Exchange exchng) throws Exception {
...
exchng.getOut().setHeader("CamelSmppSourceAddr",
this.task.getOriginator());
exchng.getOut().setHeader("CamelSmppDestAddr",
this.task.getRecipent());
exchng.getOut().setBody(this.task.getMessage());
...
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Sending-Multiple-SMPP-Message-and-get-response-for-each-message-submitted-tp4407250p4407283.html
Sent from the Camel - Users mailing list archive at Nabble.com.