Hi

You can log a JIRA ticket to add a feature to that component so it can
lazy create the connection.
http://camel.apache.org/support

Something like we have in camel-mina with the lazySessionCreation option
http://camel.apache.org/mina

Then it would only try to connect on-demand. And you should be able to
startup Camel.


On Mon, Apr 11, 2011 at 9:40 AM, peter.argalas <peter.arga...@zuno.eu> wrote:
> Hi,
>
> thank you for your advice. Unfortunately it does not helped (or I am doing
> something wrong).
>
> I tried it but with no success.
>
> My current configuration is:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> But as I can see in log it always tries to connect to SMSC in
> infobip1Context (set not to start automatically) and connection failure
> results to camel shutdown. It does not continue to create next context
> infobip3Context.
>
> SpringCamelContext   INFO  Apache Camel 2.7.0 (CamelContext:
> infobip1Context) is starting
> SpringCamelContext   INFO  Apache Camel 2.7.0 (CamelContext:
> infobip1Context) is starting
> SpringCamelContext   INFO  JMX enabled. Using ManagedManagementStrategy.
> SpringCamelContext   INFO  JMX enabled. Using ManagedManagementStrategy.
> SpringCamelContext   INFO  Cannot start routes as CamelContext has been
> configured with autoStartup=false
> SpringCamelContext   INFO  Cannot start routes as CamelContext has been
> configured with autoStartup=false
> SmppProducer         INFO  Disconnected from:
> smpp://zuno_...@smpp1.infobip.com:8888
> SmppProducer         INFO  Disconnected from:
> smpp://zuno_...@smpp1.infobip.com:8888
> SpringCamelContext   INFO  Apache Camel 2.7.0 (CamelContext:infobip1Context)
> is shutting down
> SpringCamelContext   INFO  Apache Camel 2.7.0 (CamelContext:infobip1Context)
> is shutting down
> aultShutdownStrategy INFO  Starting to graceful shutdown 0 routes (timeout
> 300 seconds)
> aultShutdownStrategy INFO  Starting to graceful shutdown 0 routes (timeout
> 300 seconds)
> aultShutdownStrategy INFO  Graceful shutdown of 0 routes completed in 0
> seconds
> aultShutdownStrategy INFO  Graceful shutdown of 0 routes completed in 0
> seconds
> ltInflightRepository INFO  Shutting down with no inflight exchanges.
> ltInflightRepository INFO  Shutting down with no inflight exchanges.
> SpringCamelContext   INFO  Uptime: 1.328 seconds
> SpringCamelContext   INFO  Uptime: 1.328 seconds
> SpringCamelContext   INFO  Apache Camel 2.7.0 (CamelContext:
> infobip1Context) is shutdown in 0.078 seconds
> SpringCamelContext   INFO  Apache Camel 2.7.0 (CamelContext:
> infobip1Context) is shutdown in 0.078 seconds
>
>
> Any advise?
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-context-shutdown-after-route-with-smpp-initialization-failure-tp4291032p4295356.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to