Groups | Blog | Home
all groups > dotnet remoting > february 2004 >

dotnet remoting : Activating a SAO in IIS without any client access


dinesh336 NO[at]SPAM hotmail.com
2/27/2004 1:29:50 PM
Hi!

I have a Singleton SAO that needs to be up and running all the time.
The problem is SAOs are not activated until the first client makes
contact. How do I get around this issue?

If I host it in a windows service I could probably have the onStart()
call a dummy method in SAO, but I would prefer that it be hosted
inside IIS.

Thanks in advance,
RJ
2/27/2004 5:54:26 PM
Dinesh,
Have you tried making it a "Published" object?
I believe the server side start up code would look something like this :

Dim o as MyRemoteObj = New MyRemoteObj ( )
RemotingServices.Marshal(o, "YourURLName.soap")

I read this, but don't know how the IIS context may differ.


[quoted text, click to view]

AddThis Social Bookmark Button