Does your Component implement the org.apache.avalon.framework.thread.ThreadSafe interface? Components I am working on at the moment are implementing this interface and are initialized at cocoon startup.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > David Legg > Sent: Monday, October 17, 2005 7:28 PM > To: [email protected] > Subject: Re: 'Hello World' for Cocoon component builders? > > > Sylvain Wallez Wrote: > >> My initialise() method is now sending a log message (strangely not at > >> Cocoon boot time but the first time I access the web app). > > > > This is because initialization doesn't inevitably mean "at > startup time". > > Depending on the case, it can also happen the first time the > component is > > used. > > Oh! ...that's interesting. The main reason I was trying to implement a > component in the first place was because initialization can take > a long time > (several minutes) so I didn't want it to occur the first time a page was > viewed. > > Is there a standard way to handle that pattern of usage? > > Regards, > David Legg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
