cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Fagnani-Bell <>
Subject Component getting recycled too early!
Date Tue, 04 Nov 2003 22:58:48 GMT
Hey list,

   What causes a component to be recycled? I have a pipeline with an 
Action and Generator that are tightly integrated. I'm trying to get 
them to share a DB access component. The idea is that the Action will 
load it from the component manager, initialize it (mainly setting the 
user to use to access the database), use it to to some DB stuff, then 
put it in the object model so that the Generator can use it.

The problem is that when act() is done the component is recycled, and I 
loose all the initialization.

Is there anyway I can ensure that my Action and Generator use the same 
instance and that it isn't recycled until the Generator is done?

I thought the component manager would act like a garbage collector and 
not recycle the if it's reference count was > 0. I guess not. Can I 
tell the CM to not release the component and then manually release it?

Thanks a lot,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message