...I just came across an idea. I remembered the discussion about the removal of the "lookup/release" pattern in favor of a simple "lookup".
Would it possible to utilize the "finalize" method for pooled components? A pooled component will get looked up and then used. In order to return it into the pool we currently call "release". I am not quite sure if this works at all... but couldn't the component actually release _itself_ within finalize? There are several problems: 1) finalize will only be triggered by the gc. so the components will locked much longer than doing a straight release. (does this kind of pooling still make sense?) 2) this only works if setting a self reference from within the finalize method prevents the gc from destroying the object Just a thought... any comments? -- Torsten -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
