You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Erik Engstrom <Er...@dot.state.mn.us> on 2003/12/30 17:19:12 UTC

Re: [RESEND]Re: Problem changing from RC4 to RC5

Looks like my attatchment got stripped some how, Ill try it again.

>>> Erik.Engstrom@dot.state.mn.us 12/29/03 09:48 AM >>>
Ok, here is a real simple patch to the
org.apache.ojb.odmg.CollectionsTest that causes the test to fail.  My
goal is to simulate restarting the system between storing and verifying.
 I think it exposes a bug somewhere.

Erik Engstrom
erik.engstrom@dot.state.mn.us
MnDOT
Traffic Management Center

>>> mccallister@forthillcompany.com 12/23/03 10:20 AM >>>
 From the current ODMG Transaction the easiest way is to cast it to a 
TransactionImpl, get the broker, and clear the cache form that:

import org.apache.ojb.odmg.TransactionImpl;
...
Transaction tx = impl.currentTransaction();
((TransactionImpl)tx).getBroker().clearCache();

-Brian

On Dec 23, 2003, at 10:46 AM, Erik Engstrom wrote:

> Thanks for your quick response.  Ill work on a unit test.
> EquipmentType.specifications is an ArrayList.  Nothing is different in
> my code or configuration, the only change is RC4 to RC5.  I havent
used
> the managed collections, I was thinking that perhaps I should.  And
now
> for a dumb question: How do I clear the cache?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org