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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
