Anchored MarshalByRefObjects in Csla

Anchored MarshalByRefObjects in Csla

Old forum URL: forums.lhotka.net/forums/t/3126.aspx


bmmathe posted on Monday, July 02, 2007

Is there a way to create objects passed by reference or "anchored objects" instead of mobile business objects.  I want to leverage the code and factory already created by the Csla but I'm starting to think this isn't possible.

Here is the scenario:  I am create a web site that has a web server, application server, and database server.  The data the object in concern contains is sensitive but needs to persistent between two sites.  The data is entertered by the user and can not be saved to a database (credit card information) but I also don't want to store the data in session.  The idea was to create an anchored object and just store the proxy in the session which will access the application server when its properties are called.  Is this possible using Csla or do I need to create another remoting server and client for this single object?

Thanks for the help,

Brett Mathe

RockfordLhotka replied on Monday, July 02, 2007

You can not use the data portal for this purpose - it is specifically designed to manage mobile objects.

Your best bet is probably to use a service oriented model. See Chapter 11 for information on this approach.

Given that it is sensitive information, you probably should use WCF with encryption, or web services with SSL to talk to the app server.

Copyright (c) Marimer LLC