The project I am working on does exactly what you are describing, so I can
say that yes, it is possible to do so. I haven't seen a specific example,
but I can describe in general terms what you need to do.
First, take an example of building a .Net Remoting application as a regular
exe application.. You should be able to find a sample application for one of
those easily enough. In the MSDN library, there is an article entitled,
"Buiding a basic .Net Remoting Application".
Part of that process involves building a remotable object, which is
something that inherits from MarshalByRefObject. Any application that can
include a remotable object can then serve as the host server application for
the remotable object. So, instead of including the remotable object in a
regular application, create a new Windows Service, and include it in there.
Do everything exactly as you would do it for an executable application, but
start it as a service instead.
(If you don't know how to do that, there are plenty of samples around. It's
easy.)
If you are trying to work through the process, but get a little stuck, ask a
more specific question.
[quoted text, click to view] "Ralph Flaugher" wrote:
> I would like to create a Windows service application which is always alive.
> Clients can connect and monitor activity or change settings. To allow the
> clients to connect I want to use COM+ or .NET remoting but all examples I've
> seen are not applications, they are esentially libraries. It is possible to
> use componennts for process to process communication? Does anyone know of an
> example of doing so?
> --
Check out these links for some examples:
Chat Client example
http://support.microsoft.com/default.aspx?scid=kb;en-us;312114 and on GotDotNet there are several examples:
http://samples.gotdotnet.com/QuickStart/howto/default.aspx?url=/quickstart/howto/doc/Remoting/firstserver.aspx
Thanks,
Sam
--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com _______________________________
[quoted text, click to view] "David" <David@blackdeck.com> wrote in message
news:C4B01947-404E-4638-908F-D01E7418ACD5@microsoft.com...
> The project I am working on does exactly what you are describing, so I can
> say that yes, it is possible to do so. I haven't seen a specific example,
> but I can describe in general terms what you need to do.
>
> First, take an example of building a .Net Remoting application as a
regular
> exe application.. You should be able to find a sample application for one
of
> those easily enough. In the MSDN library, there is an article entitled,
> "Buiding a basic .Net Remoting Application".
>
> Part of that process involves building a remotable object, which is
> something that inherits from MarshalByRefObject. Any application that can
> include a remotable object can then serve as the host server application
for
> the remotable object. So, instead of including the remotable object in a
> regular application, create a new Windows Service, and include it in
there.
> Do everything exactly as you would do it for an executable application,
but
> start it as a service instead.
>
> (If you don't know how to do that, there are plenty of samples around.
It's
> easy.)
>
> If you are trying to work through the process, but get a little stuck, ask
a
> more specific question.
>
>
>
> "Ralph Flaugher" wrote:
>
> > I would like to create a Windows service application which is always
alive.
> > Clients can connect and monitor activity or change settings. To allow
the
> > clients to connect I want to use COM+ or .NET remoting but all examples
I've
> > seen are not applications, they are esentially libraries. It is
possible to
> > use componennts for process to process communication? Does anyone know
of an
> > example of doing so?
> > --
> > Ralph Flaugher