camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Resolved: (CAMEL-3600) ServiceHelper - Avoid started/stopping service if already started/stopped
Date Fri, 28 Jan 2011 17:08:44 GMT


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:
>             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.

View raw message