cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: Lifecycle of components thru Spring ?
Date Thu, 28 Sep 2006 11:43:27 GMT
Laurent Perez wrote:
> Hello
> 
> Whenever I access cocoon2.2 beans via context.getBean(component.ROLE),
> do I have to respect a few lifecycle contracts, like
> release(component) like I used to do with cocoonComponentManager under
> 2.1, perhaps something like calling bean destroy() method once I'm
> done with them, and init() them back later ?
No :)

> 
> I'm worrying about letting unused components fill up my memory space,
> unless of course the new container cleanups everything in the
> background.
> 
Cocoon does this for you - for thread safe components this isn't a
problem anyway. We create proxies for poolable/recyclable components
which should handle the calls to recycle etc.

Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message