-->
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: LazyLoading in RCP Application
PostPosted: Wed Nov 21, 2012 6:17 am 
Newbie

Joined: Wed Nov 21, 2012 4:36 am
Posts: 1
Hi, I have an eclipse rcp application and use hibernate for database access. My question refers to lazyloading. I have a treeviewer (like an explorer) which is instantiated when a view opens in eclipse, there I open the session and do the transactions.

I could not close the session because I only want to load a new object in my treeviewer, when the user wants to get it -> lazyloading.
I read that
Quote:
The session objects should not be kept open for a long time because they are not usually thread safe and they should be created and destroyed them as needed
.

But I can only close this session, when I close the whole view in eclipse. It could take a long time since it´s been closed. I´m a little bit confused if it is the right way. I want to use this great feature lazyloading of hibernate.

Thanks in Advance!


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.