You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Torsten Curdt <tc...@dff.st> on 2001/05/10 19:04:45 UTC
runnable component
I'd like C2 to start a thread/runnable of a
different application on startup. Something
like the turbine cron.
What's the best way to do this? Writing
an Avalon Component that will be initialized
on C2 startup?
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: runnable component
Posted by Berin Loritsch <bl...@apache.org>.
Torsten Curdt wrote:
>
> I'd like C2 to start a thread/runnable of a
> different application on startup. Something
> like the turbine cron.
> What's the best way to do this? Writing
> an Avalon Component that will be initialized
> on C2 startup?
That's what I did. Keep in mind that Avalon Excalibur
will delay initialization until the component is
first requested. This is to avoid instances where
components are requested before the configuration
engine loads them in.
So I had an action call request it (any sitemap
component is immediately initialized).
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: runnable component
Posted by Torsten Curdt <tc...@dff.st>.
> > I'd like C2 to start a thread/runnable of a
> > different application on startup. Something
> > like the turbine cron.
> > What's the best way to do this? Writing
> > an Avalon Component that will be initialized
> > on C2 startup?
>
> Not sure what you gonna try to do now.
Berin did ;)
I want to initialize some things (even threads)
on C2 startup. So doing this as avolon component
seems to be the way...
--
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: runnable component
Posted by giacomo <gi...@apache.org>.
On Thu, 10 May 2001, Torsten Curdt wrote:
> I'd like C2 to start a thread/runnable of a
> different application on startup. Something
> like the turbine cron.
> What's the best way to do this? Writing
> an Avalon Component that will be initialized
> on C2 startup?
Not sure what you gonna try to do now.
An Avalon component might not be instantiated before the first lookup.
Look into DefaultComponent*.java from excalibur package.
Giacomo
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org