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&enquireLinkTimer=10000&transactionTimer=5000&systemType=producer You only have to use & if you use the XML DSL to mask the '&' character... Best, Christian On Thu, Mar 21, 2013 at 7:28 AM, Jagdish <[email protected]> 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&enquireLinkTimer=10000&transactionTimer=5000&systemType=producer"); > from("smpp://smppclient1@localhost > :2775?password=password&enquireLinkTimer=10000&transactionTimer=5000&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. --
