It works. 
Thank you very much for your quick answer. 

-----Message d'origine-----
De : Lance Eason [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 19 mars 2003 15:34
À : OJB Users List; [EMAIL PROTECTED]
Objet : RE: Problem with the cache on OJB


PersistenceBroker.clearCache()

-----Original Message-----
From: Hennebelle [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 8:30 AM
To: [EMAIL PROTECTED]
Subject: Problem with the cache on OJB


Hello,

I've got a problem with OJB's cache.
In my program, I make two requests in SQL. I retrieve the two requests in
the spy.log :
select A.* from A, B WHERE A.column = B.COLUMN and A.etat = 'V'
select A.* from A, B WHERE A.column = B.COLUMN and A.etat = 'E'

The beans I retrieve are exactly the same (they have the same 'etat' which
is 'V' in my example).

My question is that I want to empty the cache between the calls of the two
requests. How can I do this ?

PS : I don't want to change 'ObjectCacheDefaultImpl' by
'ObjectCacheEmptyImpl' in my OJB.properties for the Object cache because I
will have many problems with it for making joints.
In fact, when I use this class, my problem is solved but I've got my joint
which take a lot of time (it jumps from 0.8 sec to 6 sec), that's why I want
to do this in my program.

Olivier Hennebelle
mail : [EMAIL PROTECTED]


---------------------------------------------------------------------
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]

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

Reply via email to