all groups > dotnet remoting > february 2007 >
You're in the

dotnet remoting

group:

Communication between remoting objects hosted under the same service


RE: Communication between remoting objects hosted under the same servi Wiyosaya
2/8/2007 9:23:01 AM
dotnet remoting: If I understand what you are asking, I do something similar. I register both
objects in the service first. Then on both of them, I call
Activator.GetObject referencing the location of the service, i.e., localhost
and the proper port as well as the object name. I then store the interfaces
in the service. Once you have the interface, I suppose that you could have a
method on one of the objects that takes the interface pointer to the object
you want to access and stores it in a member variable of the class that you
want to call that interface. As I see it, there is no reason why that won't
work.

[quoted text, click to view]
Communication between remoting objects hosted under the same service Striped
2/8/2007 10:22:19 AM
Is there a faster way to access a remoting server object hosted under THE
SAME windows service beside standard way thru creating a proxy using
Activator.GetObject()?

In other words, there are 2 components, first of them is a singlecall and
used by the clients and second one is a singleton that shares a resource
with infinite lifetime and is accessed only by the first component.

Re: Communication between remoting objects hosted under the same s Wiyosaya
2/8/2007 12:30:00 PM
How about:

SingleCall.mMethodCall(ISingleon ISingletonInterfaceServiceInstance,
remaining method parameters...)

[quoted text, click to view]
Re: Communication between remoting objects hosted under the same servi Striped
2/8/2007 1:12:57 PM
Thanks! That will probably work in case if both objects are singletons.
My case is that one object is singlecall and therefore it cannot save the
pointer to the other object interface between the client's calls.


[quoted text, click to view]

AddThis Social Bookmark Button