I don't know the intricacies of avalon daemon components (never used them), but can't you just add the necessary lifecycle interfaces to your avalon component? There are interfaces like Initializable etc that get called only once during the lifetime of a component.

Have a look at http://excalibur.apache.org/framework/lifecycle.html to see what i mean.

HTH
Jorg

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?

Thanks


***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication.
***********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to