Re: Cache errors?

2005-02-10 Thread Ilkka Priha
Hi Ernst, OJB version 1.0.1 has a bug in hash codes of ObjectCacheDefaultImpl making it act like you noticed. Try some other cache implementation, version 1.0 or 1.0.2 pre from cvs. -- Ilkka Ernst Temp wrote: Hello, I am using OJB in my application (Mysql 4.1, Java 1.4.1, Mac OS X) mainly as DB

Cache errors?

2005-02-10 Thread Ernst Temp
Hello, I am using OJB in my application (Mysql 4.1, Java 1.4.1, Mac OS X) mainly as DB access layer. I am using the persistence broker, and had strange behavior of the cache. It delivered table entries that were not what i queried for. Assume a table contents like Key1 , key2 , name --

Re: Pool Info?

2005-02-10 Thread Armin Waibel
Hi Bob, Also, based on the configuration, I would expect the connection to be shutdown after my 60 second Thread.sleep, but as you can see, the connection is still listed as active. Am I looking in the right place? You are locking in the right place! The PB-pool is not intended to support automat

RE: Pool Info?

2005-02-10 Thread jecrotea
Return Receipt Your RE: Pool Info? document:

RE: Pool Info?

2005-02-10 Thread Bob Damato
Ok, I think I understand now. Here's what I've found. When I run the following code ... -- PersistenceBroker pb = ... <--- get a broker but don't close Properties p = ((PersistenceBrokerFactoryDefaultImpl)PersistenceBrokerFactoryFactory.instance()).getPoolCon

OJB collections not getting cached

2005-02-10 Thread Michael Newton
My apps has Domains that have a m:n relationship with Groups (although I only need to navigate from Domains to Groups). I am successfully using a collection-descriptor with an indirection table to do this. My problem is that this "memberships" collection is not being persisted as part of the Domain

Re: Pool Info?

2005-02-10 Thread Armin Waibel
Hi Bob, Bob Damato wrote: Hello Armin, Thank you for the information. I extended the ConnectionFactoryPooledImpl and I was able to gain access to the connection pool information. Another question: Is there a way that I can set up the pool to notify me (log entry, email, electric shock etc) if a b

Re: ObjectCacheOSCacheImpl issue.

2005-02-10 Thread Michael Newton
OK, that was the problem. Thanks. M. On Thu, 10 Feb 2005 07:53:27 +0100, Armin Waibel <[EMAIL PROTECTED]> wrote: > > > > So what's going on here? > > are you sure that "OSCache" is really used by OJB? You set the OSCache > in OJB.properties, but is a cache in repository_database.xml file > (ob

RE: Pool Info?

2005-02-10 Thread Bob Damato
Hello Armin, Thank you for the information. I extended the ConnectionFactoryPooledImpl and I was able to gain access to the connection pool information. Another question: Is there a way that I can set up the pool to notify me (log entry, email, electric shock etc) if a broker is evicted from t