all groups > dotnet distributed apps > november 2004 >
You're in the

dotnet distributed apps

group:

Process to process communication with COM+ or .Net remoting interf



Process to process communication with COM+ or .Net remoting interf Ralph Flaugher
11/3/2004 11:49:02 AM
dotnet distributed apps: 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?
--
RE: Process to process communication with COM+ or .Net remoting interf David
11/3/2004 2:23:02 PM
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]
Re: Process to process communication with COM+ or .Net remoting interf Sam Santiago
11/3/2004 3:19:07 PM
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]

RE: Process to process communication with COM+ or .Net remoting in Ralph Flaugher
11/4/2004 5:32:04 AM
Thanks for your reply. Here is a link I found after my post which might help
you as well:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod29.asp

Ralph

[quoted text, click to view]
RE: Process to process communication with COM+ or .Net remoting in Ralph Flaugher
11/4/2004 1:18:02 PM
I have a question may be you can answer. I have a got my service app to host
a .Net remote component but there is seems to be no point. The .Net remote
component has no access to my service's data which is what I want. I want
the .Net remote component to provide an interface to the service. Is this
possible?

It seems the service is just a container for the .Net remote component and
there is no shared data.

Ralph

[quoted text, click to view]
Re: Process to process communication with COM+ or .Net remoting in Sam Santiago
11/4/2004 9:35:09 PM
You have total control over that. The remoted object is simply a component
of your windows service, so you can decide how you want to provide whatever
data required to it and it can expose it as remoted methods to the clients.
For example, you could have another object that acts as a data provider to
the remoted component and is contained within it. Whenever the remoted
component needed data it could invoke this data provider for the required
data. Essentially your remoted object is simply a facade for another object
that provides the data.

Thanks,

Sam
--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
[quoted text, click to view]

AddThis Social Bookmark Button