cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Walsh <awa...@contal.net.au>
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="com.bear.hgscs.trading.daemon.RepoTradeVerifyDaemon" 
> logger="core.repotrade" 
> name="com.bear.hgscs.trading.daemon.RepoTradeVerifyDaemon">
>   <parameter name="thread-pool-name" value="daemon"/>
> </component>
>
> I can get an instance of this from flowscript with 
> cocoon.getComponent("com.bear.hgscs.trading.daemon.RepoTradeVerifyDaemon"). 
>  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

Adam


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


Mime
View raw message