Re: Anonymous keys

2006-12-07 Thread Armin Waibel
Hi Vagula, Vagula wrote: Hi, I have some doubts though: 1. In the access attribute for an reference field (as given below in repository_user.xml) which is the best option? a. read only b. read write c. anonymous I would use

Re: Circular references issue

2006-12-07 Thread Armin Waibel
Hi Gautam, Bruno is right, you have to do two steps on insert of objects with bidirectional references. Say class A and B have a bidirectional 1:1 reference, then do e.g. A a = new A(); B b = new B(); a.setB(b); // set one reference broker.beginTx broker.store(a,..); b.setA(a); // set other

OutOfMemoryError with Proxy

2006-12-07 Thread mananthakris
Hi, We are using OJB with Jboss,Mysql on linux. We have implemented all we could as suggested by OJB performance tutorial. We are using Proxies,default cache,PB-api,odmg transaction,but we can't use getIteratorByQuery because the results are processed after the transaction is closed. We are

Re: OutOfMemoryError with Proxy

2006-12-07 Thread mananthakris
Forgot to mention that we are using ojb1.0rc4 mananthakris wrote: Hi, We are using OJB with Jboss,Mysql on linux. We have implemented all we could as suggested by OJB performance tutorial. We are using Proxies,default cache,PB-api,odmg transaction,but we can't use getIteratorByQuery

Re: OutOfMemoryError with Proxy

2006-12-07 Thread Armin Waibel
Hi, could you post the OJB.properties and jdbc-connection-descriptor too? This would help to find problematic settings. Which version of OJB do you use? mananthakris wrote: Hi, We are using OJB with Jboss,Mysql on linux. We have implemented all we could as suggested by OJB performance

Re: OutOfMemoryError with Proxy

2006-12-07 Thread mananthakris
Thanks for the quick response.We are using OJB1.0rc4. yes we can use getObjectByIdentity. But the stack trace of the error shows that getObjectByQuery is internally calling getObjectByIdentity,so did not think this would help. How can we find how many objects are materialized at a given time?

Re: OutOfMemoryError with Proxy

2006-12-07 Thread mananthakris
Sorry i checked changing the method to what was suggested on the findByPrimarykey page, but the broker class does not seem to have that method in the version we use. This is the code we are currently using for findByPrimarykey String[] keyArray = {key}; Identity id = new