Hello Viezz,
If your sent exchange is out cabable, you have to read the CamelSmppId from
the out message:
exchange.getOut().getHeader("CamelSmppId");
And you have to set CamelSmppSourceAddr, ... on the in message:
exchange.getIn().setHeader("CamelSmppSourceAddr", "...");
Best,
Christian
On Wed, May 18, 2011 at 8:15 PM, viezz <[email protected]> wrote:
> 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.
>