Remoting a Windows Service Application

  • Thread starter Thread starter Stephajn Craig
  • Start date Start date
S

Stephajn Craig

Is it possible to apply remoting techniques to a Windows Service
Application?

I have an application that I'm building that is primarily ASP.NET based.
However, there are some functions that I want to have run all the time in
the background. So I am implementing a Windows service to accomplish this.
However, I'd like to expose some funtionality out of this Windows Service as
well. I'd like to be able to remote control it to a certain extent, and
have it act as a service both for the web app and for other clients I'm
building.

I understand a web service would be ideal, but the problem here is that the
requirement is for a service that is always available and doesn't have to be
instantiated.

If there is a better way to do this, by all means, PLEASE let me know. :)

Stephajn
 
Actually, the best configuration for remoting is using a Windows Service
The web service just as remoting are available all the time (if you have IIS
running, of course).
So the main reason for using Remoting would be performance, but this will
reduce interoperability, so you must use .NET as client too.
The main differences are their capabilities, Remoting can use any of the
predefined channels (TCP/HTTP) with any of the formatters (Binary/SOAP)
while WebServices use only HTTP/SOAP, along with the capacity for using
singleton in remoting.

Regards
Omar
 
Is it possible to apply remoting techniques to a Windows Service
Application?

Yes. It is quite possible. "Advanced .NET Remoting" by Ingo Rammer is
a very good book on the subject. The book has two versions, one for C#
and the other for VB.NET ;)
 
Back
Top