-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate is not getting synchronized with MySql.
PostPosted: Tue Jul 03, 2007 5:38 am 
Newbie

Joined: Tue Jul 03, 2007 12:16 am
Posts: 4
Location: India
I am encountering a problem with Hibernate when the data is updated from the external tools, updated data is not getting effected in the application.
when the Server (JBoss) is started logger information in the console of the eclipse IDE is "Second Level Cache:enabled".
> But according to the Documentation of Hibernate "Cache doesn't get enabled untill it is explicitly declared to enable".
> I have checked the following scenarios
> 1.Changed data from my sql client browser and accesed through the application data is same as before(no updated data is present).
> 2 I have checked whether Hibernate is establishing connection with the database everytime a request is sent .For this I have interrupted the connection.I got "Socket Exception" which means it is establishing connection with the database everytime a request is sent.
> 3.One more strange thing is "Once our database server was re-started while I am working",still I am able to view all the data'which means Hibernate is using the data which is present in the Cache(which is a contradiction to scenario 2).
> 4.I am able to view the updated data once the server is re-started.
> After all these testings I have come to a conclusion that "Hibernate is using the second-level cache to retrieve data ,which is a contradiction to the Hibernate's documentation "cache is enabled only if it explicitly enalbed".
> As the Eclipse is enabling the cache explicitly,I need to disable the second level cache in my application.Did any one face this problem ,if so please provide me with some solution.
> Thanks in advance.
> Divya


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

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.