[ 
https://issues.apache.org/jira/browse/CAMEL-3600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-3600.
--------------------------------

    Resolution: Fixed

trunk: 1064780.

Now Camel checks the state of the service to determine if its needed to 
start/stop it. This avoid double/tripple starting/stopping services.

> ServiceHelper - Avoid started/stopping service if already started/stopped
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-3600
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3600
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.7.0
>
>
> We should optimize ServiceHelper to detect if the service is already 
> started/stopped (if it extends ServiceSupport, as then it provides state).
> Also DefaultEndpoint should extends ServiceSupport to provide state so we 
> know if the endpoint is started/stopped.
> This avoid double starting or stopping services which is not needed.
> And some custom components may not work well if they are started twice, just 
> because Camel handles it lifecycle and invokes start multiple times.
> Also refine the logging in ServiceHelper from TRACE to DEBUG level so its 
> easier to spot the lifecycle.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to