[ 
https://issues.apache.org/jira/browse/CAMEL-7945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16771876#comment-16771876
 ] 

Pascal Schumacher commented on CAMEL-7945:
------------------------------------------

The workaround is to disable autostart of the route consuming from smpp and use 
the controlbus and sheduler components to start the route. E.g.:

{code}
String routeId = "SmppConsume";

from("smpp://host").routeId(routeId)
        .noAutoStartup()

// allows camel to start even if connecting to SMSC in not possible
from("scheduler:StartSmppConsume?delay=15s").routeId("Start_" + routeId)
        .to("controlbus:route?loggingLevel=DEBUG&action=status&routeId=" + 
routeId)
        .choice().when(body().isEqualTo(ServiceStatus.Stopped))
                .to("controlbus:route?loggingLevel=WARN&action=start&routeId=" 
+ routeId);
{code}


> SMPP connector as consumer stops camel context
> ----------------------------------------------
>
>                 Key: CAMEL-7945
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7945
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-smpp
>    Affects Versions: 2.13.2
>            Reporter: Tomas Hanus
>            Priority: Major
>             Fix For: Future
>
>
> I try to use SMPP component as producer and consumer to send SMS and PUSH SMS 
> (MMS) to SMSC/receive delivery notifications or SMS from mobile devices. But 
> still if SMSC is down camel context will shut down, and also all other 
> context, so camel cannot start up. Affect version is camel 2.13.2 and only 
> consumer. Producer is OK and parameter lazySessionCreation=true works well, 
> but not for consumer. Any idea how to solve that? Probably it has to do with 
> CAMEL-3853 issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to