[
https://issues.apache.org/jira/browse/CAMEL-7342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14481209#comment-14481209
]
Willem Jiang commented on CAMEL-7342:
-------------------------------------
I just went through the discussion of the mailing list, I agree with Christian
Mueller, we should not implement the "lazySessionCreation" flag for the SMPP
consumer.
For the SMPP consumer, it need to be connect to the server before the consumer
is started, otherwise camel don't have chance to start the consumer again. The
work around could be set the route autoStart option to be false if you don't
want the SMPP consumer connect to the SMSC when the camel route is loaded, then
you can start the camel by calling the route start when the time is ready.
> Implement "lazySessionCreation" flag for the SMPP consumer as it works for
> the producer.
> ----------------------------------------------------------------------------------------
>
> Key: CAMEL-7342
> URL: https://issues.apache.org/jira/browse/CAMEL-7342
> Project: Camel
> Issue Type: Improvement
> Components: camel-smpp
> Reporter: Ray Slater
> Assignee: Willem Jiang
>
> If a SMPP consumer route is configured but the the initial connection attempt
> fails (eg if the SMSC is not accessible), then the route fails
> (java.io.IOException: Connection refused) and the camel context shuts
> everything down.
> For SMPP producers there is a "lazySessionCreation" flag which allows the
> route to be created and go into a reconnection attempt cycle until the SMSC
> is available.
> Please implement this flag for the consumer.
> See discussion from last year here:
> http://camel.465427.n5.nabble.com/Route-failure-on-startup-for-SMPP-consumer-if-SMSC-down-td5730666.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)