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: Multithreading and lazy load
PostPosted: Thu Jun 22, 2006 10:17 am 
Beginner
Beginner

Joined: Fri May 12, 2006 10:48 am
Posts: 33
Hi, I’m working in a multithreading routine; this routine accesses the data base using NHibernate, I get a new session for each thread, but I have two problems:

First, if I define my classes as “Lazy”, then I get the following message error "Creating a proxy instance failed".

Second, if I change my class definition to be “not lazy”, I have a lot of memory problems, because it’s very hard to get a new session in each thread.

Could anybody help to defined my classes as Lazy in a multithreading routine?


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.