cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Walsh <>
Subject Re: starting a component at startup
Date Tue, 22 Mar 2005 23:30:24 GMT
Thomas Torsney-Weir wrote:

> I'm using version 2.1.  I have created an avalon daemon component and 
> set it up in cocoon.xconf with:
> <component class="" 
> logger="core.repotrade" 
> name="">
>   <parameter name="thread-pool-name" value="daemon"/>
> </component>
> I can get an instance of this from flowscript with 
> cocoon.getComponent(""). 
>  This starts the daemon running.  However, I'd like this to 
> automatically start when the servlet starts and stopped when the 
> servlet ends.  The quartz scheduler from v2.1 seems to do this 
> somehow, but I can't figure out how it works.  Does anyone know how to 
> do this?

Hi Thomas,

try having your avalon component implement ThreadSafe


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message