-->
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 cache issue
PostPosted: Fri Aug 25, 2006 11:23 am 
Newbie

Joined: Fri Aug 25, 2006 10:45 am
Posts: 1
Hi, I 'm Ezequiel from Argentina. In my job we have an stand-alone-application in SWT that connects to a db server. We use a single hibernate session. This session is created when application starts, and ended when application closes. The issue we have is that when multiple applications are running (in different machines), objects do not show there real state. For example:
1) in session 1 we list all the purchase order.
2) in session 2 we list all purchase order and change state to one of them.
3) in session 1, we list all order purchase again but state of purchase order remains the same.

Queries are cached. If we execute any query in a single hibernate session, hibernate executes de select only once, but not twice(except if you wait a couple of minutes). We need to have the information refreshed instantly for every single
We looked for the answer, but didnt find any. I know there is a first level cache for the session.
I hope I made myself clear.

thanks...


Top
 Profile  
 
 Post subject: Same problem - Stale data??
PostPosted: Sat Aug 26, 2006 6:30 am 
Newbie

Joined: Sat Aug 26, 2006 6:26 am
Posts: 1
Hi there,

I have been having the same issue all day. One client app updates an object, I can see the changes in the DB - but when i use another client app the changes are not reflected??. They only become the same when i restart them both.

I will keep you posted


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.