On Sun, 18 Nov 2001, Vincent Massol wrote: > The "developing with Avalon" guide suggest (strategy 1) to release > components that we use in the release() method. It doesn't say for which > kind of components, but I guess it only makes sense for poolable ones, right > ?
Technically, yes. But client code of components don't know their implementation and thus it is a general contract of client code to the ComponentManager to release EACH components obtained from it. > Or is there a reference count in the excalibur component manager code ? > > For example, I am using the DataSourceComponent component, which is > ThreadSafe (one instance in the jvm). Why should I release it by writing : > > public void dispose() > { > this.manager.release(this.datasource); > } See above. Giacomo -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>