Hi Armin, thank you for answering so quickly. That's always very nice.

Sorry, but I have 3 more questions about clearing Object Caches :

- When PersistenceBrokerFactory.releaseAllInstances is done, does Object
Caches are reset?

- Can, either of these ways to clear cache (
PersistenceBrokerFactory.releaseAllInstances (if it is so)  and
PB.clearCache ), damage running transactions using released cached objects ?

- If I choose the PB.clearCache(), how can i iterate *all* the PBs i have in
my pool ? I can get one PB from the pool, but i don't known how to get the
whole collection.

Thanks again, and again...

Regards



Now, my need would be to getAllBroker from


On 11/13/06, Armin Waibel <[EMAIL PROTECTED]> wrote:

Hi Bruno,

Bruno CROS wrote:
> Hi,
>
> Just about a little question.
>
> Does PersistenceBrokerFactory.releaseAllInstances() release all cached
> objects?
>
> I'm using PersistenceBrokerFactoryDefaultImpl and ObjetCacheDefaultImpl
> (and
> OJB 1.0.4.)
>
> The goal is to force server to reload all OJB mapped objects. Is there a
> proper foreseen method to call to do this?
>

Evict all caches:

PB.clearCache()

or

PB.serviceObjectCache().clear()

With
PersistenceBrokerFactory.releaseAllInstances()

you will release all pooled PB instances and reset the the PB pool.

regards,
Armin

> Thanks a lot.
>
> Bruno
>

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


Reply via email to