camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Slater (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7342) Implement "lazySessionCreation" flag for the SMPP consumer as it works for the producer.
Date Fri, 10 Apr 2015 15:36:12 GMT

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

Ray Slater commented on CAMEL-7342:
-----------------------------------

Having looked at this issue afresh I wonder if my description of implementing the "lazySessionCreation"
flag is a cause of confusion and reluctance to add this feature. On re-reading, I realise
that this description of what is required is misleading - of course you always want the consumer
to attempt to connect upon start of the route, however if the bind to the SMSC fails for whatever
reason, I need it to enter into a reconnection attempt cycle until the SMSC is available rather
than stopping the route (and any others in the same camel context).

Anyway, this is a requirement for me, and so I have implemented the functionality change for
myself as a branch from 2.15.1.
It is configured using a new option "startConsumerIfDown". If this is set to true, then a
reconnect thread is started instead of trying once only to create the session.
The major change here is the removal of the wait for the thread completion in the reconnect
method (to allow doStart to complete), and movement of the reconnectLock mutex.

https://github.com/RaySlater/camel/tree/CAMEL-7342

> 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)

Mime
View raw message