-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: howto stop jcs threads, howto disable jcs
PostPosted: Mon Sep 15, 2003 11:37 am 
Newbie

Joined: Mon Sep 15, 2003 11:27 am
Posts: 3
Hi there

I have two questions:

1) How can I kill thows damns JSC threads that kepp up running im my VM eventhough I stopped Tomcat. In the Servlet I call

Code:
http://forum.hibernate.org/index.php


but this doesn't stops the JCS cache. Then I do

Code:
CompositeCacheManager cacheManager = CompositeCacheManager.getInstance();
String[] names = cacheManager.getCacheNames();
for (int i = 0; i < names.length; i++) {
   log.info("Disposing JCS cache: " + names[i]);
   cacheManager.getCache(names[i]).dispose();
}



and this doesn't seem to do anything as well.

2) Is it possible do globally disable JCS? It is quite unhandy when I have to remove all the jcs-cache statements from the xml files to disable cacheing. When I just remove the cache config file I'll get a NullPointer, so this doesn't help neither.

I would like to have a hibernate config option, something like hibernate.cache.jcs=off, this would be really cool! Is there anything like this (could't find it)

Thanks for the help & cheers
-florian


PS: We are using hibernate 2.0.3


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2003 11:39 am 
Newbie

Joined: Mon Sep 15, 2003 11:27 am
Posts: 3
Sorry, a copy past error....
In 1) I do

Code:
hibernateFactory.close();


and not the URL I just posted :-)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2003 1:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
In 2.1 you can change the cache provider to HashtableCacheProvider...

Note that we are in the process of de-emphasizing JCS. I am not satisfied by the current level of quality, and it does not seem to be under active development. Stay tuned....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2003 1:39 pm 
Newbie

Joined: Mon Sep 15, 2003 11:27 am
Posts: 3
Hi Gavin

Thanks for your fast feedback! I'm very glad that you say this - from browsing through the the (very small) doku and the (very rudimentary documented) source code of JCS I had a simmilar feeling.

I guess that the hashtable caching will analogue to the JCS cache only support the load() queries?

Unfortunately we are going in to production very soon and can't wait for the 2.1 release, but I will check it out as soon as the release is here.

enjoy the evening
-florian


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2003 1:53 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Actually current Hibernate CVS supports caching of query results. I'm a bit unconvinced of the practical value of this, but we'll see...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2003 2:40 pm 
gavin wrote:
Actually current Hibernate CVS supports caching of query results. I'm a bit unconvinced of the practical value of this, but we'll see...


It must be usefull for the most web applications, I have used custom JDBC driver to cache data and it works for trivial use cases.


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.