On Mon, 18 Feb 2002 10:39, Paulo Gaspar wrote: > The token contains NO trace info. The CM does. The > token is just a key.
right but it is a key into a map that is used to look up another structure that contains traceinformation. > I use 2 maps because I want BOTH to release single > components or all the components for a token. (I > want to release "limited" resources like database > connections ASAP.) right. Thats about the only good reason that I have heard so far that would be useful to keep the release*() methods. > But keep in mind that only a minority of the used > components are usually tracked - since most do not > need to be released. Quite a few of my typical > requests are processed using several components but > not needing to have any of them tracked. yep. > A new CM, as light as it might be, ends up creating > a few objects and adding an extra wrapping layer. I > just think that it does not pay its own overhead. Perhaps you are not getting what I am saying. What I sam saying is that creation of a new CM is ***LESS*** overhead than a token tracking strategy ;) BTW do you wanna post your code for this so I can see if you implement it in a way similar to the way I assume you do it. -- Cheers, Pete --------------------------------------------------- "Wise men don't need advice. Fools don't take it." -Benjamin Franklin --------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>