camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-3600) ServiceHelper - Avoid started/stopping service if already started/stopped
Date Fri, 28 Jan 2011 10:07:44 GMT
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.


Mime
View raw message