Do you mean that every action already implements the Poolable interface ?
If so, why do I have these messages about "decommissioning instance of" ?
Some of the base action classes do, so it depends on your inheritance tree. If your action just implements Action and extend Object (default) then you have to make it implements Action, Poolable.
Poolable should be a pure marker interface (i.e., it defines no methods which must be implemented) so that may be all you need to do. However, you will need to make sure that your action is in a "clean state" the next time it is used. Study the actions which ship with cocoon - you'll find many answers there.
Geoff
-----Message d'origine----- De : Nicolas Toper [mailto:[EMAIL PROTECTED] Envoy� : lundi 9 f�vrier 2004 17:28 � : [EMAIL PROTECTED] Objet : Re: Is it possible to have poolable actions ?
Well, yes you have to implement actions interface :=) See the archives and the wiki
Le Lundi 09 F�vrier 2004 17:23, MAHE Vincent FTRD/DIH/REN a �crit :
Hi,
I'm using
When I test my webapp in DEBUG mode, I have the following lines in the sitemap.log file :
DEBUG (2004-02-09) 11:11.41:727 [sitemap] (/test/)
tcpConnection-80-0/DefaultComponentFactory: ComponentFactory creating new
instance of mobivisit.acting._common.SessionIsValidAction. DEBUG (2004-02-09) 11:11.41:727 [sitemap] (/test/)
tcpConnection-80-0/DefaultComponentFactory: logger attribute is
sitemap.action.session-isvalid DEBUG (2004-02-09) 11:11.41:727 [sitemap] (/test/) tcpConnection-80-0/DefaultComponentFactory:
ComponentFactory decommissioning instance of
mobivisit.acting._common.SessionIsValidAction.
If I had pool-min or pool-max parameters in my sitemap, it doesn't change anything.
Isn't it possible to have a Cocoon action poolable ?
I have seen in the doc that there are such actions like AbstractXMLFormAction which implements the excalibur.pool.Poolable interface.
Do you think I can have better performances if I implement this interface in my actions ?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
