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.

Reply via email to