-->
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: Lazy session and concurrency session updates
PostPosted: Sat Mar 06, 2010 10:54 am 
Newbie

Joined: Sat Mar 06, 2010 10:44 am
Posts: 1
Hi there,

This is my first question on the forum because I usually try as much as possible to find solutions by myself, but here I'm stuck.

Here the context:
- I'm building an Eclipse RCP application (client) which uses Hibernate (+ H2) to store its data
- The application mainly works on a huge tree (several millions of nodes) kept in the H2 database through Hibernate

I'm keeping a long session opened in order to browse those nodes (the parent-children relation is a lazy one) from an Eclipse View. All is globally working perfectly but here is the problem: there are some jobs which use their own session to update the tree (those sessions are shorts: closed and committed once the job is done). But when I reload a node from the lazy session which was supposed to be updated by the job, it seems like it's not updated (in fact it is because when I restart the application I can see the update). So it seems like when I call load on the opened lazy session, the node doesn't reflect the modifications made by the other committed job session. Is that normal? Is their a way to get an updated object from a opened lazy session?

Thanks a lot for your help and sorry for my english!


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.