-->
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: Session synchronization problem in cluster
PostPosted: Mon May 31, 2010 10:05 am 
Newbie

Joined: Mon May 31, 2010 9:45 am
Posts: 1
I have a serious problem with session synchronization in cluster environment.
Our client has several servers belonging to the same cluster. One server (1) executes operations that perform update in a given table. Another server (2) performs Select and read the data updated. This not occurs at the same time but with difference of few minutes.
It seems that the server 2 cannot access to the last data update in the other server. Possibly, there 2 hibernate sessions are not synchronized, and the server 2 read from a cache not yet update at this moment.

Configuration detail:
    -Hibernate 3.2.7
    -Spring 2.0.5
    -Oracle 10g
    -Without using 2nd level Cache
    -Each server runs the same application in Webshpere server 6.1, so 2 different session factories are used, one per each server.
    -The queries used are HQL or Criteria.

My problem is that I cannot reproduce this problem in test environment. I would to know if there is some solution for forcing the query to get the data from the database every time is executed, if it is possible without installing the 2nd level cache.
LockMode could resolve this, if for example I execute Select queries with LockMode.READ?

Thanks,


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.