Different locations for defining the cache

2005-02-28 Thread CLARAMONTE Jean-Baptiste
Hello everyone, I don't understand the behavior of OJB when you define a cache on a per jdbc-connection-descriptor. In the CacheDistributor.java class at the following method we've got this snippet : public ObjectCache getCache(Identity oid, Object obj, int callingMethod) { ...

RE: ojb memory question

2005-02-08 Thread CLARAMONTE Jean-Baptiste
yes this is default behavior : OJB creates an Identity object for each instance of your mapped objects. This Identity object is then used as a key for storing the object in the cache. ... so yes if two Products have reference to the same Attribut object, OJB will cache just one instance of this At

refreshing associations

2005-01-13 Thread CLARAMONTE Jean-Baptiste
Hello, About the use of the attribut "refresh" which is available on associations (0.1 , 1.n , m.n), I'm wondering : why would I set it to false ? Because after all isn't it just better and simpler to always set it to true ? Or am I missing something ? Thanx JB

RE: Isolation level for Persistence broker queries

2005-01-03 Thread CLARAMONTE Jean-Baptiste
Hello, With the PersistenceBroker api you can't specify the isolation level. You can use optimistic transaction to enhance the consistency of your data but you should be very cautious if you use it with a cache because it can introduce some strange behaviour on data highly exposed to concurrency

Exception management

2004-12-22 Thread CLARAMONTE Jean-Baptiste
Hello, I'm just realizing that most of the OJB exception are extending RuntimeException and I was wondering why, as this is permitting a bad Exception management. Developper are able to write code without any Exception management, it's not really a good practices ? So my question is why is it des

RE: addPrefetchedRelationship

2004-12-16 Thread CLARAMONTE Jean-Baptiste
Hi Jeff, I don't think you could do better than 4 queries unless you use a ReportQueryByCriteria. As I understand it, addPrefetchedRelationship can optimze the number of queries you'll send to your database only when you have a 0,1 relationship : for example : A---(0,1)->B => if you make a que

RE: Another implementation of the Two Level Cache

2004-12-10 Thread CLARAMONTE Jean-Baptiste
it is possible to have higher isolations without using blocking locks or a scheme that might fail? It's impossible, isn't it? Oliver On Fri, 10 Dec 2004 17:22:50 +0100, CLARAMONTE Jean-Baptiste <[EMAIL PROTECTED]> wrote: > The Slide project ? which project are you talking about

RE: Another implementation of the Two Level Cache

2004-12-10 Thread CLARAMONTE Jean-Baptiste
Cache This pretty much is the mechanism the Slide project uses. AFAIK the isolation level is similar to READ_COMMITTED, isn't it? Oliver On Fri, 10 Dec 2004 13:18:53 +0100, CLARAMONTE Jean-Baptiste <[EMAIL PROTECTED]> wrote: > Hello, > > As I was not satisfy with

RE: Another implementation of the Two Level Cache

2004-12-10 Thread CLARAMONTE Jean-Baptiste
go ahead ! I'm glad to contribute ! :-) -Message d'origine- De: Armin Waibel A: OJB Users List Date: 10/12/2004 16:14 Objet: Re: Another implementation of the Two Level Cache Hi Jean-Baptiste, CLARAMONTE Jean-Baptiste wrote: > Hello, > > As I was not satisfy with

Another implementation of the Two Level Cache

2004-12-10 Thread CLARAMONTE Jean-Baptiste
Hello, As I was not satisfy with the implementation of the TwoLevelCache, mainly because it was not isolating the object in use in a transaction with others transactions, so I've tried to write another one and now I would like too share it with the community. For resuming here are the behavior of

RE: Deep retrieve : a proposal

2004-11-29 Thread CLARAMONTE Jean-Baptiste
query instead of executing one query for each parent object. what is the additional benefit of DeepRetrieve ? jakob CLARAMONTE Jean-Baptiste schrieb: > I've noticed that OJB doesn't offer a deep retrieve reference service, so I > have developped an utility for retrieving from one

Is theTwoLevelCache stable ? Could someone share his feedback about it ?

2004-11-29 Thread CLARAMONTE Jean-Baptiste
I would like to know if some of you have already used (in a production environnement would be great) the cache's implementation called TwoLevelCache. What are your feedback about it ? I have found a post talking about it (http://www.mail-archive.com/ojb-user@db.apache.org/msg08338.html) and which w

RE: Deep retrieve : a proposal

2004-11-29 Thread CLARAMONTE Jean-Baptiste
query instead of executing one query for each parent object. what is the additional benefit of DeepRetrieve ? jakob CLARAMONTE Jean-Baptiste schrieb: > I've noticed that OJB doesn't offer a deep retrieve reference service, so I > have developped an utility for retrieving from one refer

Deep retrieve : a proposal

2004-11-29 Thread CLARAMONTE Jean-Baptiste
I've noticed that OJB doesn't offer a deep retrieve reference service, so I have developped an utility for retrieving from one reference all the deep references (and back references). Example : we have the following model : [A]<(*)listeA-(1)b>[B]<(1)b-(*)listeC>[C]-(1)d>[D]

Arichive Mailing list problem : the body of the messages can't be seen ?

2003-03-27 Thread CLARAMONTE Jean-Baptiste
-Message d'origine- De : Vincenz Braun [mailto:[EMAIL PROTECTED] Envoyé : mercredi 26 mars 2003 16:14 À : [EMAIL PROTECTED] Objet : Newbie questions (oracle and ojb setup) (posted because archive unbrowsable) Hi, my first steps with ojb. Some questions have arised. I post these becaus

RE: Customizing if a persistente object use the cache or not

2003-02-21 Thread CLARAMONTE Jean-Baptiste
Oh yes also ... We put the cache to on, only for classes that map onto table that don't change to much. -Message d'origine- De : PICARD Jérôme Envoyé : jeudi 6 février 2003 18:15 À : '[EMAIL PROTECTED]' Cc : CLARAMONTE Jean-Baptiste Objet : RE: Customizing if a pe

RE: Second Attempt at Question - Per class caching, MetaObjectCacheImpl

2003-02-18 Thread CLARAMONTE Jean-Baptiste
Hello Andrew, In a precedent post we have tell in the mailing list that we have implemented for our needs an implementation of the ObjectCache and we have use the custom attributes capabilites of OJB to achieve that so it's very easy to use. So in your repository you just need to add the following

How to use the custom attributes ?

2003-02-04 Thread CLARAMONTE Jean-Baptiste
Hello, I've just seen in an old post that it exists a way to easily add its own custom attributes : http://archives.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED] e.org&msgId=501943 So by using the following tag it seems that I could add my own attributes in the repository_user.xml : Could some