during prefetch auto-retrieve is disabled. when an other thread uses the relationship-desriptor it will find auto-retrive off.
this is a known problem but i do not have a solution for it :(
jakob
Theo Niemeijer wrote:
Hi all,
I seemed to have stumbled on a potential problem with the "prefetch relationship" option in PB query.
After using prefetchRelationship for retrieval of big list of results, and at the same time performing other queries, I seemed to have lost the "auto-retrieve" attribute on the collection descriptor.
The result was that subsequent queries did not
retrieve that collection anymore, probably because the
"auto-retrieve" was disabled.
The problem is quite hard to reproduce, but my guess is
that different threads modified the repository descriptor
in the wrong sequence, by means of the setCascadeRetrieve
method used in prepareRelationshipSettings.
I might be wrong, because I simply do not oversee all aspects
of OJB. But am I right to view this as a potential problem
in "concurrency situations" like websites ?
I do not feel too comfortable that OJB makes these "temporary" changes to the repository model.
Cheers, Theo Niemeijer
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
