I'll get around to the other points later. I'm on my way out the door right now. In the mean time, clarification to the pooling stuff.
Stephen McConnell wrote:
Berin Loritsch wrote:
Stephen McConnell wrote:
I agree with what your saying about the pool stuff (examples I used were from excalibur pool, not mpool). Presumably mpool pools still need some level of parameterization which that I need to address within the component meta-data (i.e. Merlin directives for pool creation).
Not really--which is the beauty of it.
None? I mean are you saying that there are no parameterization options?
I purposely made it *adapt* to useage. It is extensible in the sense we can add a more robust and "learning" pool manager. It uses a background process to manage the size of the pool. I have not found any need to provide any configuration parameters to the pool manager though.
Not quite. The interfaces Resettable and Recycleable are *functional*.
They do not merely mark the object. They provide a point for the object
to reset itself to an initial state when we are done with it. Now, I agree
that the interface Poolable is meta information, which is why the MPool
stuff does not have an equivalent to that.
OK- I missed that point. What your saying is that a restable component is one where the container's only participation is to invoke reset - i.e. no decommissioning, recommissioning, etc. The responsibility rests with the component to reset any local state before returning from the method - resulting in the state equivalent to the post-deployment state - following which the container returns the resttable to the pool?
In so many words, yes.
In truth, it is the pool manager that calls the "reset()" or "recycle()" method. All the container does is call the method, and the component takes care of the rest.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
