cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Perez <craquer...@yahoo.es>
Subject Re: Where's the best place to run code at Cocoon startup?
Date Fri, 14 Oct 2005 09:38:26 GMT
Sylvain Wallez schrieb:

> David Legg wrote:
>
>> I've got some singleton Java classes that I'd rather configure and 
>> init at Cocoon init time instead of the first time a page is 
>> requested.  Where's the best place to do this?
>>
>> I've looked at the xconf file but I'm not sure if this is what I need.
>
>
>
> Yes, this is the right place. Make sure your class implements the 
> Avalon ThreadSafe interface and declare it in cocoon.xconf
>
> Sylvain
>
Another solution I use is to inherit the Cocoon servlet and override the 
standard servlet init method.

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


Mime
View raw message