-->
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.  [ 5 posts ] 
Author Message
 Post subject: ISession implementor
PostPosted: Thu Feb 09, 2006 6:11 am 
Newbie

Joined: Thu Feb 09, 2006 5:51 am
Posts: 9
Hi all!
I am developing a client-server application with remoting based application server and NHibernate.
Using NHibernate over remoting seems easy enough - I created a marshalbyref wrapper which sends serialized objects to the client. The problem arises with lazy loading. When accessing chlidren on a client, naturally NHibernate cannot find an open session to lazy load them.
As I understood there is a way to implement the correct behavior using custom implementation of ISessionImplementor.
Could anyone give me any hints or a working example of such implementation?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 6:23 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
I wonder what gave you that idea... ISessionImplementor is an internal NHibernate interface. The lazy loading problem is discussed quite often on this forum, try searching.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 6:36 am 
Newbie

Joined: Thu Feb 09, 2006 5:51 am
Posts: 9
Well it is discussed, though no pattern or practice is proposed to enable lazy-loading on a client machine through the application server.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 10:21 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Yes, there isn't a general solution that would be applicable in all cases. Search Hibernate forums and Wiki, and use the knowledge to build a solution that would work best for you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 10:44 am 
Newbie

Joined: Thu Feb 09, 2006 5:51 am
Posts: 9
Ok, I will.
It is simply a pity that such a useful framework is not adapted to provide a typical solution.
Thanks for the work you are doing. Can't wait to see the release with generics support! =)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.