Re: ObjectCacheOSCacheImpl without clustering

2004-02-04 Thread Jair da Silva Ferreira Júnior
, 2004-02-03 at 14:15, Jair da Silva Ferreira Júnior wrote: Hi, I am using ojb1.0_rc5, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I've had some problems using the OJB default cache implementation (ObjectCacheDefaultImpl ) in RC5, so I

ObjectCacheOSCacheImpl without clustering

2004-02-03 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc5, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I've had some problems using the OJB default cache implementation (ObjectCacheDefaultImpl ) in RC5, so I would like to change the cache implementation to

ojb query question

2004-01-08 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc5, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). How can I run a query that returns objects from a different class than the class to search from? For example: class Person{ int id;

Re: objects in cache after transaction abort

2004-01-03 Thread Jair da Silva Ferreira Júnior
Hi Armin, Hi Jair jr, Jair da Silva Ferreira Júnior wrote: Hi Armin, Thank you for your fast reply. hmm, this should not happend. Do you use checkpoint() or flush() in your code? This only could happens when the object was already in DB. Only the PersistenceBrokerImpl

Re: cache implementation change in rc5?

2004-01-03 Thread Jair da Silva Ferreira Júnior
Hi Armin, Hi Jair jr, Jair da Silva Ferreira Júnior wrote: Hi Armin, Thank you very much for your fast reply. it's a(/my) bug in ObjectCacheDefaultImpl (rc5) causing this strange behaviour. I will check in a fixed version tomorrow. Ok. How can I get the fixed

Re: objects in cache after transaction abort

2003-12-31 Thread Jair da Silva Ferreira Júnior
).getBroker(); QueryByIdentity query2=new QueryByIdentity(s); boolean cacheOk=(broker.getObjectByQuery(query2)==null); System.out.println(cacheOk: +cacheOk); //cacheOk==false always t.commit(); Thanks, Jair Jr Jair da Silva Ferreira Júnior wrote: Hi, I am using ojb1.0_rc5, ODMG api

Re: cache implementation change in rc5?

2003-12-31 Thread Jair da Silva Ferreira Júnior
a new rc5 binary version with this fix? Thanks, Jair Jr Jair da Silva Ferreira Júnior wrote: Hi, I am using ojb1.0_rc5, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I moved from rc4 to rc5 recently and I noticed that sometimes when I

objects in cache after transaction abort

2003-12-30 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc5, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I moved from rc4 to rc5 recently and I noticed that sometimes the objects persisted inside an aborted transaction are still in cache when another transaction is

cache implementation change in rc5?

2003-12-30 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc5, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I moved from rc4 to rc5 recently and I noticed that sometimes when I run a query the resulting associated objects don't come from the cache. Please, take a look at the

problem using m:n association

2003-12-12 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc4, ODMG api with OJB queries, mysql4 (innodb tables) in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I am having a problem using non-decomposed m:n associations. Here is the description of my problem: in my business model I have an User class and a Group class. User

Re: deadlock in transaction.lock

2003-12-06 Thread Jair da Silva Ferreira Júnior
regards, Armin Jair da Silva Ferreira Júnior wrote: Hi, The deadlock occurs when locking the objects. More specifically, in the first write-lock of the object which happens to persists it. These are my locking properties in OJB.properties: LockManagerClass

Re: how to reload cached object?

2003-12-05 Thread Jair da Silva Ferreira Júnior
collection. Jair da Silva Ferreira Júnior wrote: transaction.begin(); Customer c=new Customer(); c.setName(customer); transaction.lock(c,transaction.WRITE); //persist the new customer transaction.commit(); //after some time someone

hot to reload cached object?

2003-12-04 Thread Jair da Silva Ferreira Júnior
Hello, Does anyone know how to refresh or reload an OJB cached object from the database? Is there any API or method that can help me do this? The situation is: I have an object in OJB cache, the object has been changed in the database. How can I say to OJB to reload my object? Thanks,

Re: hot to reload cached object?

2003-12-04 Thread Jair da Silva Ferreira Júnior
transaction.commit(); Thank you very much for your help. Sincerely, Jair Jr - Original Message - From: Martin Kalén [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 2:08 PM Subject: Re: hot to reload cached object? Jair da Silva Ferreira Júnior wrote

Re: deadlock in transaction.lock

2003-12-03 Thread Jair da Silva Ferreira Júnior
Hi, - Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 8:41 PM Subject: Re: deadlock in transaction.lock Hi, Jair da Silva Ferreira Júnior wrote: Hi, I am using ojb1.0_rc4, ODMG api with OJB queries

Re: deadlock in transaction.lock

2003-12-03 Thread Jair da Silva Ferreira Júnior
Subject: Re: deadlock in transaction.lock Hi, Jair da Silva Ferreira Júnior wrote: Hi, I am using ojb1.0_rc4, ODMG api with OJB queries, mysql4 in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I am experiencing the following problem: when multiple threads (about 20) try to write lock

deadlock in transaction.lock

2003-12-02 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc4, ODMG api with OJB queries, mysql4 in Linux Red Hat 7.3 (kernel 2.4.20-20.7). I am experiencing the following problem: when multiple threads (about 20) try to write lock an object, at some point, the transaction.lock(object,Transaction.WRITE) method simply

pool question

2003-11-23 Thread Jair da Silva Ferreira Júnior
Hi, I'm confused about how maxWait and whenExhaustedAction work together in the connection-pool tag of the repository_database.xml file. Is maxWait only used when whenExhaustedAction=1 (block when pool is exhausted) or is it used when whenExhaustedAction=0 (fail when pool is exhausted)

broker usage in odmg transaction question

2003-11-14 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc4, ODMG api with OJB queries and mysql4. When running OJB queries using the broker, is it necessary to begin, commit or abort the broker transaction? Which one should I use? Example 1 or 2? 1) ... PersistenceBroker broker = ((HasBroker)

locking model in ODMG

2003-11-14 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc4, ODMG api with OJB queries and mysql4. My questions are: 1) What happens when two different ODMG transactions try to write lock the same object at the same time? A LockNotGrantedException is thrown in one of the transactions or one transaction waits for

Re: how to get objects locked by a transaction?

2003-10-29 Thread Jair da Silva Ferreira Júnior
to the ObjectEnvelopeTable. So I don't see a way to perform your task without changing OJB code... cheers, Thomas -Original Message- From: Jair da Silva Ferreira Júnior [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 12:25 AM To: OJB Users List Subject

Re: how to get objects locked by a transaction?

2003-10-28 Thread Jair da Silva Ferreira Júnior
to the ObjectEnvelopeTable. So I don't see a way to perform your task without changing OJB code... cheers, Thomas -Original Message- From: Jair da Silva Ferreira Júnior [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 12:25 AM To: OJB Users List Subject: how to get objects locked

how to get objects locked by a transaction?

2003-10-27 Thread Jair da Silva Ferreira Júnior
Hello, How can I safely get all objects locked by a transaction using ODMG or broker API? I need this because I want to remove all objects locked by a transaction from the cache. Something like this: . Iterator lockedObjects=getLockedObjects(transaction);

nested fields in collection-descriptor orderby attribute

2003-09-20 Thread Jair da Silva Ferreira Júnior
Hi, Does OJB support nested fields in collection-descriptor orderby attributes? For example, suppose I have three classes (ClassA, ClassB and ClassC) I would like to use this in my repository-user.xml descriptor file: class-descriptor class=ClassA table=class_a

collection-descriptor orderby attribute fetches wrong field value

2003-09-16 Thread Jair da Silva Ferreira Júnior
Hi, I am using ojb1.0_rc4, ODMG api with OJB queries and mysql4. I will describe my problem with an example for you to better understand it. 1) I have a class called ClassA, another class called ClassB and another class called ClassC. 2) ClassA has a collection of ClassB objects which has

Re: query before commit problem

2003-09-12 Thread Jair da Silva Ferreira Júnior
in the DB and the second query does find it. Works as designed. -Thomas Jair da Silva Ferreira Júnior wrote: Hi, I am using ojb1.0_rc4, ODMG api with OJB queries and mysql4. The problem is that when I persist an object and run a identity query looking for the persisted objet