Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / May 2005

Tip: Looking for answers? Try searching our database.

Multiple client-side channels

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Burger - 12 May 2005 21:06 GMT
Is it possible to have 2 separate objects bind to 2 different channels from the client side? Given the following confg, how can one register one object to use one channel (versioned) and the another use the other (non-versioned)? RemotingConfiguration.Configure() will register both http-soap channels below since they have different names, but how can the client specify the well-known ISecurityVersioned object to use the versioned channel and the ISecurityNonVersioned object to use the NonVersioned channel?

<system.runtime.remoting>
 <application>
   <client>
     <wellknown type="IVersioned, Framework.Common" url="http://localhost:80/wsSecurity/mySecurityVers.rem"/>   
     <wellknown type="INonVersioned, Framework.Common" url="http://localhost:80/wsSecurity/mySecurityNonVers.rem"/>   
   </client>
   <channels>       
     <channel ref="http" name="Versioned">
       <clientProviders>
         <provider ref="ClientSinkProvider" />
         <formatter ref="soap" includeVersions="true" />
       </clientProviders>                   
     </channel>           
     <channel ref="http" name="NonVersioned">
       <clientProviders>
         <provider ref="ClientSinkProvider" />
         <formatter ref="soap" includeVersions="false" />
       </clientProviders>                   
     </channel>                   
   </channels>
 </application>       
 <channelSinkProviders>
   <clientProviders>
     <provider id="ClientSinkProvider" type="Framework.Remoting.ClientSinkProvider, Framework.Common" />
   </clientProviders>
 </channelSinkProviders>       
</system.runtime.remoting>
Sergey Radkevich - 13 May 2005 02:19 GMT
> Is it possible to have 2 separate objects bind to 2 different channels from the client side?

Channels are shared by all objects within domain.
If you wish to divide objects by channels you need to create second domain.

When you do this on server
on client you will receive ObjRef which contains only one channel which
corresponds to selected object
Mike Burger - 13 May 2005 15:32 GMT
Yes, channels are shared by all objects in the domain. But, is there a way to configure a specific object to use a specified channel? Say there are 2 well-known types A and B, and there are 2 channels registered, X and Y. Is there a way to tell obj A to use channel X and obj B to use channel Y?
Sergey Radkevich - 14 May 2005 05:28 GMT
> Yes, channels are shared by all objects in the domain.
> But, is there a way to configure a specific object to use a specified channel?
> Say there are 2 well-known types A and B, and there are 2 channels registered, X and Y.
> Is there a way to tell obj A to use channel X and obj B to use channel Y?

The only way:
Create domain D1, D2,
place object A into domain D1, place object B into domain D2.
register channel X in domain D1, register channel Y in domain D2

object A will use channel X, object B will use channel Y

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.