-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Query Cache !!
PostPosted: Tue Mar 07, 2006 12:32 am 
Newbie

Joined: Sat Feb 11, 2006 1:47 am
Posts: 9
Location: India
I wanna use the Hibernate Query Cache in my application.
What i need to do in my code and in Config. file..?

I have tried
Code:
setCacheabble
in my code and i have

Code:
<property name="hibernate.cache.use_query_cache">false</property>
   <property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>


I am facing the problem wen i am trying to redoply my app.
When i deploy for the first time then my app works fine but when i tried to redploy it i get ClassCastException ?

Plz do help me......

_________________
crack the jack


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 07, 2006 5:37 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Why are you setting use_query_cache to false if you want to use it?

Can you post the exception too, so that we can figure out what's going wrong for you? Though it sounds like your deploy process might be letting you down, if redeploying is the only thing that's failing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.