G
Guest
Hi,
In trying to understanding the .Net Remoting plumbing I have a questions and
wondering if anyone can help me? I have read Rammer's excellent book but
still having got all the answers.
This is what I have and I know of.
I have a client program, Client, and a server program, Server, which hosts
..Net Remotable classes - can be CAO or Singleton SAO. Let's use Singleton and
call this MyServFactory class and I am using a IPC channel for connection.
This class MyServFactory can manufacture objects of a number of
MarshalByRefObject classes and one of them is MyClass.
I can connect to the server by getting an instance of MyServFactory and that
returns to me a transparent proxy with which I can acquire an instance of
MyClass.
Questions:
==========
1) Is MyClass CAO?
2) When I access methods and properties of MyClass, does the .net remoting
message travel along the connection I made when I connected to the
MyServFactory even though I am not operating on the MyServFactory object?
3) If after acquiring an instance of MyClass, can I now dispose (one way or
another) the object MyServFactory and just keeping instances of MyClass and
objects of other classes it manufactures?
4) If I can, what is there to maintain the connectivity between the client
and the server? Are these pieces of information encoded in the ObjRef?
Thanks.
Leon
In trying to understanding the .Net Remoting plumbing I have a questions and
wondering if anyone can help me? I have read Rammer's excellent book but
still having got all the answers.
This is what I have and I know of.
I have a client program, Client, and a server program, Server, which hosts
..Net Remotable classes - can be CAO or Singleton SAO. Let's use Singleton and
call this MyServFactory class and I am using a IPC channel for connection.
This class MyServFactory can manufacture objects of a number of
MarshalByRefObject classes and one of them is MyClass.
I can connect to the server by getting an instance of MyServFactory and that
returns to me a transparent proxy with which I can acquire an instance of
MyClass.
Questions:
==========
1) Is MyClass CAO?
2) When I access methods and properties of MyClass, does the .net remoting
message travel along the connection I made when I connected to the
MyServFactory even though I am not operating on the MyServFactory object?
3) If after acquiring an instance of MyClass, can I now dispose (one way or
another) the object MyServFactory and just keeping instances of MyClass and
objects of other classes it manufactures?
4) If I can, what is there to maintain the connectivity between the client
and the server? Are these pieces of information encoded in the ObjRef?
Thanks.
Leon