RE: FW: [Hibernate-devel] Getting Collections to pull data from t he cache

2002-08-09 Thread Urberg, John
>> Hibernate got everything you need to run JCS, are you sure you >> put the cache.ccf in the classpath, it's more likely the issue here. Yup. The cache.ccf from the Hibernate build is in my class path. This is the full exception I was gettting: WARNING: Could not instantiate cache - probably

RE: [Hibernate-devel] RE: JMX/JBoss

2002-08-09 Thread Urberg, John
Thanks for the link. I followed some of the further reading links and ended up at http://www.javageeks.com/Papers/ClassForName/ClassForName.pdf. On page 14, I found the following: "Using Thread.getContextClassLoader relies on the Thread's context ClassLoader to be appropriately set. What if the

Re: [Hibernate-devel] Configuration file

2002-08-09 Thread Gavin_King/Cirrus%CIRRUS
>I'm new to Hibernate and have a simple question: Must Hibernate's >config file (not the mapping file, but the config/properties file) be in >the classpath? If not, how do I use it to configure Hibernate? >Hibernate.configure does not accept a URI and I don't see any other >methods that would d

Re: FW: [Hibernate-devel] Getting Collections to pull data from the cache

2002-08-09 Thread Gavin_King/Cirrus%CIRRUS
>It comes from your auxiliary DC (Disk Cache ) cache. >My guess is that the path you gave to store objects on the disk is not >correct or it's a file permission issue. oh yeah. stupid. I didn't notice the SEVERE. yeah, ummm ... what he said... just try disabling the auxiliary cache for a start.

Re: FW: [Hibernate-devel] Getting Collections to pull data from the cache

2002-08-09 Thread Christian Meunier
It comes from your auxiliary DC (Disk Cache ) cache. My guess is that the path you gave to store objects on the disk is not correct or it's a file permission issue. Try to comment the DC cache to test this. Chris - Original Message - From: "Urberg, John" <[EMAIL PROTECTED]> To: "'Christ

Re: FW: [Hibernate-devel] Getting Collections to pull data from the cache

2002-08-09 Thread Christian Meunier
- Original Message - From: To: "Christian Meunier" <[EMAIL PROTECTED]> Cc: "Urberg, John" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 3:48 PM Subject: Re: FW: [Hibernate-devel] Getting Collections to pull data from the cache > > >you can of course use usage='r

Re: FW: [Hibernate-devel] Getting Collections to pull data from the cache

2002-08-09 Thread Christian Meunier
> >Here i dont understand ( beside the fact that there is a technical issue i > >dont figure out ) , why i would want to get 2 JCS cache region for the > >exactly same class of objects ? > > well, for a start we have toplevel collections which don't actually belong > to any class a particular

RE: FW: [Hibernate-devel] Getting Collections to pull data from the cache

2002-08-09 Thread Gavin_King/Cirrus%CIRRUS
>And I would expect 3 SQL statements with all the many-to-ones and >collections should get resolved from the cache. To enable caching, you need to add to all , , , , , elements that you want to cache. :) >My first shot at this returned: > >cirrus.hibernate.HibernateException: You tried to p

Re: FW: [Hibernate-devel] Getting Collections to pull data from the cache

2002-08-09 Thread Gavin_King/Cirrus%CIRRUS
>you can of course use usage='read-only' isnt it ? yes, if appropriate. >I am wondering something here: > >If we got this simple one to many: > >i have declarated the class bar and the class foo to use jcs-cache, shoudnt >the collection of bar in the class foo cached automatically ? No. >If i

RE: FW: [Hibernate-devel] Getting Collections to pull data from t he cache

2002-08-09 Thread Urberg, John
>>And I would expect 3 SQL statements with all the many-to-ones and >>collections should get resolved from the cache. > >To enable caching, you need to add > > > >to all , , , , , elements >that you want to cache. Ahh, I thought that was optional. That would explain it. So I tried it out and