Hi Bruno,

Bruno CROS wrote:
 Hi,

It seems that read objects with a broker, can read related objects by
auto-retrieve set to "true" despite broker is closed.

I can't see what you mean. When OJB materialize an object with related objects and auto-retrieve is 'true', the full materialized object is returned. Thus it's not possible to close the PB instance while object materialization (except by an illegal concurrent thread).

Or do you mean materialization of proxy references? In this case OJB try to lookup the current PB instance and if not found internally a PB instance is used for materialization and immediately closed after use.

Could you please describe more detailed (with example code)?

regards,
Armin

I suppose that a getDefaultBroker is done, and the borrowed broker is never
closed (because no reference on it).
Note : This occurred because, application has been written with several
layers, one for dao, one for services, one for UI.

How can i avoid "auto-retrieves" readings to take brokers in the PBPool by
themselves ?

Thanks.


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

Reply via email to