HighTechTalks DotNet Forums  

Remote object lifetime

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Remote object lifetime in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mahesh Deo
 
Posts: n/a

Default Remote object lifetime - 01-22-2007 , 12:27 AM






Hi

i have a singleton(server activated) remote object and a client app which
calls mothods of remote object. but after 5 minutes the remote object stops
working.So what should i do to keep that remote object serving to clients
till the server is on and runnig.

Thanks you.

Reply With Quote
  #2  
Old   
Peter Bradley
 
Posts: n/a

Default Re: Remote object lifetime - 01-22-2007 , 05:18 AM






This may help you:

http://www.csharphelp.com/archives2/archive422.html

However, I would advise against relying on the data in singleton objects,
even if you set their lifetimes to be infinite. The problem is that any
changes made by one client affects all the other clients. You may think
this is fine for the clients you are using - but when some other programmer
uses your object, difficulties may arise. It makes much more sense to use
client activated objects if you want to persist remote object state.

However, I have not yet found a situation where I could not manage with
stateless objects, and I always use either SingleCall SAOs or Web Services.
This fits in much better with a service oriented architecture.

Just my 2c. YMMV.

HTH

Peter

"Mahesh Deo" <MaheshDeo (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi

i have a singleton(server activated) remote object and a client app which
calls mothods of remote object. but after 5 minutes the remote object
stops
working.So what should i do to keep that remote object serving to clients
till the server is on and runnig.

Thanks you.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.