, 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
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
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;
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
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
).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
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
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
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
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
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
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
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,
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
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
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
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
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)
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)
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
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
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
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);
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
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
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
26 matches
Mail list logo