I have a scenario where I need a client application to be able to locate instances of remoted objects running in a server application @ runtime (mainly IPC on single pc).
I'm trying to write a little test app which is just meant to get the idea to work. The server app would register a channel named "MyTest1" to share the remoted object. You could then load another server app up which would register a new channel named "MyTest2" on another port, then possibly another named "MyTest3" etc. If a client app wanted to locate an object instance from one of these server apps it would search through registered channels for one named "MyTest1", or "MyTest2" depending on which one it wanted, get the server port & ultimately get a reference to the remoted object shared by whichever server app instance it chose. However!! When i tried this, there weren't any registered channels available to the client app. I take it that's because ChannelServices.RegisteredChannels only lists those channels registered by the calling process which in this case would be the client app!?
I guess my question is how would i be able to do something similar to the above? With each TcpServerChannel uniquely identifiable to client applications. Or at least some means of identifying one from the other.
Any help would be REALLY appreciated.
p.s. If you need any more info then let me know!!
I'm trying to write a little test app which is just meant to get the idea to work. The server app would register a channel named "MyTest1" to share the remoted object. You could then load another server app up which would register a new channel named "MyTest2" on another port, then possibly another named "MyTest3" etc. If a client app wanted to locate an object instance from one of these server apps it would search through registered channels for one named "MyTest1", or "MyTest2" depending on which one it wanted, get the server port & ultimately get a reference to the remoted object shared by whichever server app instance it chose. However!! When i tried this, there weren't any registered channels available to the client app. I take it that's because ChannelServices.RegisteredChannels only lists those channels registered by the calling process which in this case would be the client app!?
I guess my question is how would i be able to do something similar to the above? With each TcpServerChannel uniquely identifiable to client applications. Or at least some means of identifying one from the other.
Any help would be REALLY appreciated.
p.s. If you need any more info then let me know!!