Keep object on Server side only

Keep object on Server side only

Old forum URL:

Pavel posted on Wednesday, February 22, 2012


The question is how to keep object on Server side without returning it to a client.

I can see that all factory method and DataPortal_XYZ intended to return result to client.

Is there any way to create object to use it during application life without even attempt to return it to client.

I have 3-tier application and both libraries on client and server the same(WinForms).


JonnyBee replied on Wednesday, February 22, 2012

You can have an object that live in a

CSLA does not  provide utilities or helper classes for "server side only" objects but not a tricky part to implement or use.



RockfordLhotka replied on Wednesday, February 22, 2012

Keep in mind that you can make data portal calls on the server and they will work fine. The real question is hiding behind Jonny's answer- what server code do you have that will call the data portal, and how will you keep the resulting object in memory on the server?


In general, today's server technologies are designed to be stateless and you wil have to devise a way to maintain state in a world not designed to help you.

Copyright (c) Marimer LLC