HighTechTalks DotNet Forums  

How RemotingServices.Marshal to specific channel

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss How RemotingServices.Marshal to specific channel in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
mtczx232@yahoo.com
 
Posts: n/a

Default How RemotingServices.Marshal to specific channel - 07-05-2007 , 09:07 AM






I have class that implements two Interface. both interface serve for
remoting, each one on another Port with uniq name by using this code:

Dim props As New Hashtable()
props("port") = "50050"
props("name") = "k"
ChannelServices.RegisterChannel(New TcpChannel(props, Nothing,
Nothing), False)
rmHost = New MyServer()
Dim Myref As ObjRef = RemotingServices.Marshal(rmHost, "50050/
k")

this code is wrriten also for the second port.
So how I can specific for chanel when I call to
"RemotingServices.Marshal". How remoting system know which Service
attach to Channel?


Reply With Quote
  #2  
Old   
Spam Catcher
 
Posts: n/a

Default Re: How RemotingServices.Marshal to specific channel - 07-08-2007 , 04:54 PM






mtczx232 (AT) yahoo (DOT) com wrote in news:1183640847.260513.127700
@w5g2000hsg.googlegroups.com:

Quote:
Dim Myref As ObjRef = RemotingServices.Marshal(rmHost, "50050/
k")

this code is wrriten also for the second port.
So how I can specific for chanel when I call to
"RemotingServices.Marshal". How remoting system know which Service
attach to Channel?
I believe if you specify a URI - i.e. tcp:// or http:// you'll marshal on
that channel.


Reply With Quote
  #3  
Old   
mtczx232@yahoo.com
 
Posts: n/a

Default Re: How RemotingServices.Marshal to specific channel - 07-11-2007 , 08:46 AM



On 8 Jul, 22:54, Spam Catcher <spamhoney... (AT) rogers (DOT) com> wrote:
Quote:
mtczx... (AT) yahoo (DOT) com wrote in news:1183640847.260513.127700
@w5g2000hsg.googlegroups.com:

Dim Myref As ObjRef = RemotingServices.Marshal(rmHost, "50050/
k")

this code is wrriten also for the second port.
So how I can specific for chanel when I call to
"RemotingServices.Marshal". How remoting system know which Service
attach to Channel?

I believe if you specify a URI - i.e. tcp:// or http:// you'll marshal on
that channel.
I have two chanel on tcp, the second channel get name "k" (see above
code)
So how I can use with this name?
I realize that each marshel publish for all channel. the question is:
have a way to restrict it to specific channel, for security reason?
Actually this App publish two servoce, one is for office use, and one
to outsid. so i want to open only one port fort for specific Marshel.
How I achieve this?



Reply With Quote
  #4  
Old   
Spam Catcher
 
Posts: n/a

Default Re: How RemotingServices.Marshal to specific channel - 07-12-2007 , 12:18 PM



mtczx232 (AT) yahoo (DOT) com wrote in
news:1184158018.337241.114120 (AT) 57g2000hsv (DOT) googlegroups.com:

Quote:
I believe if you specify a URI - i.e. tcp:// or http:// you'll
marshal on that channel.

I have two chanel on tcp, the second channel get name "k" (see above
code)
So how I can use with this name?
I think it'll be k://YourURIPathHere/Object.rem

Quote:
I realize that each marshel publish for all channel. the question is:
have a way to restrict it to specific channel, for security reason?


Reply With Quote
  #5  
Old   
Günter Prossliner
 
Posts: n/a

Default Re: How RemotingServices.Marshal to specific channel - 07-12-2007 , 12:35 PM



Hallo!

Quote:
I have two chanel on tcp, the second channel get name "k" (see above
code)
So how I can use with this name?
Try ChannelServices.GetUrlsForObject() / channel.GetUrlsForUri().


GP




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.