You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jagdish <ja...@gmail.com> on 2013/03/21 07:28:53 UTC

camel smpp integration

Hi all,I'm new to camel and trying to learn. I'm trying to submit a message
to the smsc, but unable to do so. I'm able to connect with smsc but not able
to submit message. Here is my route
definition:from("direct:start").to("smpp://smppclient1@localhost:2775?password=password&amp;enquireLinkTimer=10000&amp;transactionTimer=5000&amp;systemType=producer");               
from("smpp://smppclient1@localhost:2775?password=password&amp;enquireLinkTimer=10000&amp;transactionTimer=5000&amp;systemType=consumer").to("mock:result");this
is what i'm trying to do:CamelContext context = new DefaultCamelContext();    	
Endpoint start =
context.getEndpoint("direct:start");context.addEndpoint("direct:start",
start);Exchange exchange =
start.createExchange(ExchangePattern.InOut);exchange.getIn().createExchangeId();exchange.getIn().setHeader(SmppConstants.COMMAND,
"SubmitMulti");exchange.getIn().setBody("Hello SMPP
World!");context.addRoutes(createRouteBuilder());template =
context.createProducerTemplate();template.send(start, exchange);I've googled
a lot to search for the working example without any success. Could you
please help me with the same.Thanks & regards,Jagdish



--
View this message in context: http://camel.465427.n5.nabble.com/camel-smpp-integration-tp5729585.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel smpp integration

Posted by Christian Müller <ch...@gmail.com>.
You can find the camel-smpp tests at:
https://svn.apache.org/repos/asf/camel/trunk/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/
Here you will see you should use:
smpp://smppclient1@localhost
:2775?password=password&enquireLinkTimer=10000&transactionTimer=5000&systemType=producer

instead of:
smpp://smppclient1@localhost
:2775?password=password&amp;enquireLinkTimer=10000&amp;transactionTimer=5000&amp;systemType=producer

You only have to use &amp; if you use the XML DSL to mask the '&'
character...

Best,
Christian

On Thu, Mar 21, 2013 at 7:28 AM, Jagdish <ja...@gmail.com> wrote:

> Hi all,I'm new to camel and trying to learn. I'm trying to submit a message
> to the smsc, but unable to do so. I'm able to connect with smsc but not
> able
> to submit message. Here is my route
> definition:from("direct:start").to("smpp://smppclient1@localhost
> :2775?password=password&amp;enquireLinkTimer=10000&amp;transactionTimer=5000&amp;systemType=producer");
> from("smpp://smppclient1@localhost
> :2775?password=password&amp;enquireLinkTimer=10000&amp;transactionTimer=5000&amp;systemType=consumer").to("mock:result");this
> is what i'm trying to do:CamelContext context = new DefaultCamelContext();
> Endpoint start =
> context.getEndpoint("direct:start");context.addEndpoint("direct:start",
> start);Exchange exchange =
>
> start.createExchange(ExchangePattern.InOut);exchange.getIn().createExchangeId();exchange.getIn().setHeader(SmppConstants.COMMAND,
> "SubmitMulti");exchange.getIn().setBody("Hello SMPP
> World!");context.addRoutes(createRouteBuilder());template =
> context.createProducerTemplate();template.send(start, exchange);I've
> googled
> a lot to search for the working example without any success. Could you
> please help me with the same.Thanks & regards,Jagdish
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-smpp-integration-tp5729585.html
> Sent from the Camel - Users mailing list archive at Nabble.com.




--