db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject Re: persistence broker and cache and different connection
Date Tue, 03 Aug 2004 14:58:59 GMT
Seems like I got it to work.

Changed from OJB.properties to cache per Broker.

- Joose

3.8.2004 kello 15:56, Joose Vettenranta kirjoitti:

  Hi,
>
> I have my software running as 2 instance.. using connection-descriptor 
> A and B
>
> both A and B uses same classes.
>
> problem:
>
> if I create something on A it is cached - good, ok
> if I create something on B it is cached - good, ok
>
> but problem is that A and B's cache is the same. So if I look at bean 
> with connection B and it is previously viewed by connection A, then 
> A's value is shown, always..
>
> So, how can I make that cache persistent to connections? So that when 
> I do like:
>
> dao.retrieve(bean(3), fromTableA) != dao.retrieve (bean(3), 
> fromTableB);
>
> both ones are the same, even though the database is different.
>
> Using persistentbroker and ojb 1.0.rc6
>
> Thanks,
>
> Joose
>
> --
> "Always remember that you are unique, just like everyone else!"
> * http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


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


Mime
View raw message