camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baMufu <sirchi...@gmail.com>
Subject Re: SMPP How to receive delivery receipt from smsc as producer?
Date Mon, 07 Jul 2014 10:15:51 GMT
 
baMufu wrote
> Who would u mind sharing your code on how u managed to get response from
> the SMSC. Below is my code.
>             from("test-jms:queue:test.queue").process(new Processor() {             
> 
>             public void process(Exchange e) {
>             
>               System.out.println("Received id for exchange:
> "+e.getIn().getMessageId());
>               String body = e.getIn().getBody(String.class);
>               System.out.println("Received exchange: " +body); 
>              e.getIn().setHeader("CamelSmppRegisteredDelivery",new
> Byte("1"));
>               //e.getIn().setHeader("CamelSmppDestAddr",listNum.pop());
>               e.getIn().setBody("New Data. This it it. ");
>             }
>        
> }).to("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
>                + "&systemType=producer");
>            
>         
> from("smpp://smppclient1@localhost:2775?password=password&enquireLinkTimer=3000&transactionTimer=5000"
>               + "&systemType=consumer").to("file://C:/test");
>           
>             }
>             
>         });

The LOOPBACK service of the simulator did the magic.



--
View this message in context: http://camel.465427.n5.nabble.com/SMPP-How-to-receive-delivery-receipt-from-smsc-as-producer-tp4359338p5753462.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message