Yes, please this stuff !!!

> -----Urspr�ngliche Nachricht-----
> Von: Jens Kr�mer [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 11. September 2002 01:46
> An: OJB Users List
> Betreff: per thread caching [was: Re: Anyone up for a 
> "challange" ? :)]
> 
> 
> Hi all,
> 
> I followed this thread and thought the solution I found might be of
> interest to somebody.
> 
> I implemented kind of a 'meta cache' which holds a cache instance for
> each thread. To prevent the different caches from getting out 
> of sync I
> 'hacked' PersistenceBrokerImpl.store(Object obj, boolean insert, Map
> markedForStore) to tell the meta cache whenever an Object is updated.
> 
> On commit the meta cache removes the objects corresponding to these
> changed objects from the cache instances of all other threads
> (to force reloading of the now committed changes).
> 
> On rollback it removes the changed objects from the cache of the
> current thread.
> 
> I dont consider this a nice solution but maybe it's a starting point.
> I also must admit I didn't try it in a production environment, but
> at least a testcase with two threads seems to work ;-)
> 
> I'll post/send the code if somebody is interested in...
> 
> Greetings,
> 
> Jens
> 
> -- 
> Jens Kr�mer
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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

Reply via email to