aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré>
Subject Re: Do we really need Quiesce support?
Date Tue, 10 Feb 2015 11:58:27 GMT
Hi Christian,

I don't think we use the Quiesce API (at least in Karaf). Maybe some 
other users use it, let's see ;)


On 02/10/2015 09:15 AM, Christian Schneider wrote:
> In several places in aries we support the Quiesce API. As far as I
> understood its purpose is to shut down bundles without actually stopping
> them. It does not seem to be any standard as the interfaces are in the
> Aries namespace.
> The problem with it is that it complicates the code a lot. For example
> in jpa container we create a proxy for each EntityManager that also
> supports quiesce methods even though they are
> not part of the EntityManager interface. The code in other modules is
> similarly affected.
> Besides this I do not see anyone using the API. I am also not sure why
> we need it at all as OSGi already has nice lifecycle methods to stop
> bundles which should have a similar effect if implemented nicely. One
> other disadvantge of Quiesce is that you can only shut down a bundle.
> You can not restart it again.
> So the question is: Do we really need to support the Quiesce API? The
> code would be a lot less complex and error prone without it.
> Christian

Jean-Baptiste Onofré
Talend -

View raw message