-->
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.  [ 4 posts ] 
Author Message
 Post subject: Remoting/MarshalBy* Entity Samples
PostPosted: Wed Sep 14, 2005 9:55 am 
Hello,

I've been researching how to use NHibernate in a distributed environment where remoting is used in-place of web services and DTOs. However, I'm having a difficult time finding any unit test cases that exercise NHibernate with entities that derive from MarshalBy[Ref|Value]Component. Are there any within the NHibernate project or elsewhere?

My primary concern is ensuring that entities that include lazy loading support for collections, etc. will be able to be loaded once they have left the machine where NHibernate is located.

I appreciate anyone's feedback and suggestions.

Thanks!


Top
  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 12:32 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
Have you read this topic: NHibernate and Services ?

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 4:31 pm 
Kpixel:

Thanks for your reply. I had performed a search on this forum and found that topic, but I felt it didn't answer my question - though, I realize, I may be asking it incorrectly...Let me elaborate a bit...

I'm working on an architecture proposal and need to have this main issue nailed down. I'm choosing to use Remoting over Web Services and Data Transfer Objects because I view it as extra and unnecessary work. Also, the platform is restricted to just .NET so interoperability is not an issue and, should it become one, we just implement the Web Services anyhow...To complicate matters, the library[ies] that will compose the business logic will need to run within COM+ to take advantage of object pooling and distributed transaction services.

This is the primary reason why I felt that post you referenced did not address my concerns as passing ISession/ISessionFactory instances to the client would, in essence, break the architecture. I still need to maintain lazy-loading capabilities, which is why I mentioned having the entities subclass a MarshalBy* object so that they can be transmitted between the client and server tiers thinking there was some "magic" that NHibernate does that allows the collections etc. to continue to load once they cross the process boundry...

If this is not possible my only option, at this point, is to propose migrating the existing home-grown O/R solution, which will be a significant effort. This architecture is something I would love to prototype, but at the moment, I don't have the time (or billing vehicle) to do so...

If anyone has any suggestions, I'm all ears and they are all greatly, greatly appreciated...

Thanks again!!!


Top
  
 
 Post subject:
PostPosted: Thu Sep 15, 2005 9:12 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
I never tried to do that, can you try it with the code I posted in the other topic ?

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


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