cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: StoreJanitorImpl runs forever?
Date Mon, 19 Nov 2001 13:57:02 GMT
Bernhard Huber wrote:

> Hi
> I have a question regarding StoreJanitorImpl.
> As I see in the source StoreJanitorImpl implements only
> Runnable.
> As I was using org.apache.cocoon.Main it seems that
> after all work is done StoreJanitorImpl stays running,
> this prevents org.apache.cocoon.Main to terminate even
> after the Cocoon.dispose() call.


If this is the case, then we need to do one of two things:

1) Have StoreJanitor implement Startable (allowing it to
    be explicitly started and stopped, safely)
2) Call thread.setDaemon(true) if no cleanup is necessary.


> Further I suspect that StoreJanitorImpl makes problems if a
> servlet-container wants to dispose the Cocoon servlet. The thread of
> StoreJanitorImpl stays consuming valuable thread resources of a the
> dispose Cocoon servlet.


True!



-- 

"Those who would trade liberty for
  temporary security deserve neither"
                 - Benjamin Franklin


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message