-->
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: localhost to Server(changes not seen)
PostPosted: Thu Jul 05, 2007 2:46 am 
Newbie

Joined: Tue Jul 03, 2007 12:16 am
Posts: 4
Location: India
I am using Hibernate with Mysql.Whenever I change the values in my local system changes are not getting effected to the application running in the server.In order to view the updated values the Server needs to be restarted again.How can i overcome this issue.

Thanks in advance
Divya.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 3:45 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

Did you use any kind of caching techincs


Amila


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 4:17 am 
Newbie

Joined: Tue Jul 03, 2007 12:16 am
Posts: 4
Location: India
No I haven't used any.But once server is stopped data can be viewed.Log file says that "Second Level cache:enabled"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 4:58 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

set hibernate.cache.provider_class to org.hibernate.cache.NoCacheProvider


Amila

(Don't forget to rate if helps)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 5:12 am 
Newbie

Joined: Tue Jul 03, 2007 12:16 am
Posts: 4
Location: India
But the documentation says that cache will not be unabled unless we explicitly mention the cache to true.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 5:37 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

set hibernate.show_sql property true to view actual database hits. You can see the data is retrieve from db or cache by using this property. If there are no sql statements . it comes from cache.


Amila

(Don't forget to rate if helps)


Top
 Profile  
 
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.