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 Armin Waibel <ar...@code-au-lait.de> on 2003/04/09 16:45:47 UTC

Re: rc2, implementation of method invalidate in PersistenceBrokerImpl not very funny

Hi Roger,

----- Original Message -----
From: "Janssen, Roger" <Ro...@ibanx.nl>
To: "'OJB Users List'" <oj...@db.apache.org>
Sent: Wednesday, April 09, 2003 4:28 PM
Subject: rc2, implementation of method invalidate in
PersistenceBrokerImpl not very funny


> hi,
>
> migrating from 0.9.7 to 1.0.rc2 i had a lot of trouble involving the
cache
> problems braking my app.
> to prevent this trouble i always invalidate the objects immediately
using
> the invalidate method of PersistenceBrokerImpl .
>
> this method is still available in rc2, but guys .... this is NOT the
way to
> do it :
>
________________________________________________________________________
_
>     /**
>      *
>      * removes the objects obj from the brokers internal cache and
>      * inform other caches in OJB cluster about invalidation.
>      */
>     public void invalidate(Identity oid) throws
PersistenceBrokerException
>     {
>         // as resolution to #OJB1 I commented out the following line
>         // removeFromCache(oid);
>     }
>
________________________________________________________________________
_
>
> either remove the method completely from API/interface so it becomes
obvious
> that something has changed and i need to refactor my code.
> or let it throw a 'not implemented exception' every time it is called
if you
> do not want it to be used.
>
> not just out-comment it...
>
> in a perfect world, deprecate it first and then remove it.

Ups, you are right very bad karma!
Sorry for this really nasty bug.

I will remove this obsolete method completely from PB-api.

regards,
Armin

>
> roger janssen
> iBanx
>
>
>
>
>
************************************************************************
*
> The information contained in this communication is confidential and is
> intended solely for the use of the individual or entity to  whom it is
> addressed.You should not copy, disclose or distribute this
communication
> without the authority of iBanx bv. iBanx bv is neither liable for
> the proper and complete transmission of the information has been
maintained
> nor that the communication is free of viruses, interceptions or
interference.
>
> If you are not the intended recipient of this communication please
return
> the communication to the sender and delete and destroy all copies.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>