all groups > dotnet remoting > july 2006 >
You're in the

dotnet remoting

group:

.NET Remoting with Multiple Channels



.NET Remoting with Multiple Channels breeto NO[at]SPAM yahoo.com
7/17/2006 3:17:30 PM
dotnet remoting: If you've configured .NET Remoting to use more than one channel of the
same type, for example two TcpClientChannels with unique names, when
you want to create a proxy to a remote object how do you specify which
channel you want that proxy to use?

Thanks in advance.
RE: .NET Remoting with Multiple Channels TT (Tom Tempelaere)
7/25/2006 3:25:02 AM
Hi,

I don't think you can register two channels of the same type. Have you ever
tried doing that?

Kind regards,
--
Tom Tempelaere.


[quoted text, click to view]
Re: .NET Remoting with Multiple Channels breeto NO[at]SPAM yahoo.com
7/25/2006 12:57:34 PM
Yes, you can definitely register more than one channel of the same
type. The only extra step you have to take is to give each channel a
unique name. This can be easily done via RegisterChannel() overload or
dictionary of channel properties.

I'm still at loss though as to why they let you register multiple
channels of the same type if they won't let you choose which channel to
use for a given object proxy! I'm still hopeful there's a way, I'm
just having a hard time finding it.


[quoted text, click to view]
Re: .NET Remoting with Multiple Channels TT (Tom Tempelaere)
8/1/2006 5:15:02 AM
Hi Breeto,

Indeed I didn't notice that you could add a "name" property to the
properties dictionary when registering the channel.

I noticed that there is also a property called "priority". I would think a
channel is chosen on the "priority" property. So a call or incoming call to a
remoted object would prefer the channel with the highest priority, unless the
channel is already being used by another call. But I must say that I'm
absolutely no expert at all, this is just a guess.

Other than that I would think that it is not important what channel is used,
but I could be wrong. I have no clear view on why you would want to assign a
specific channel for a specific remoted object.

This is just a guess, but would an extra AppDomain solve the issue? It
appears channels are bound to an AppDomain...

Regards,
--
Tom Tempelaere.


[quoted text, click to view]
AddThis Social Bookmark Button