Thomas Mahler <thma32 <at> web.de> writes:

> 
> broker.close();
> 
> Stanley Poon wrote:
> > In our application, there is a need to destroy or release an instance of the
> > PersistenceBroker. OJB provides
> > PersistenceBrokerFactory.releaseAllInstances(). However, that will destroy
> > all other instances that should not be removed.
> > 
> > Is there a way of destroying only one broker? In doing so, will the
> > connections associated with the broker be released?
> > 
> > Thanks,
> > Stanley
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ojb-user-unsubscribe <at> db.apache.org
> > For additional commands, e-mail: ojb-user-help <at> db.apache.org
> > 
> > 
> 


broker.close() only return the object to the pool. Next time around, a call to 
get a broker will return the same object. I indeed verified this in the 
debugger and see the same object reference returned.

I'm looking for a way to clean up the broker when it is not needed or should be 
replaced by a different one. In my case, this is needed so that users can 
dynamically change the brokers.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to