Remoting Question
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-remoting' list.


Lowney, Rob
I'm working on getting my head around remoting and am stuck on a small
point.

I have an object created (BrowserInfo) that inherits from
MarshalByRefObject. In it I have a bunch of public properties and a couple
of methods.

I also have a server object that does the following:
1. Creates an instance of the BrowserInfo class
2. Sets a bunch of properties
3. Opens a TCP channel (port 8082) to listen

I also have a client created that connects on port 8082 and creates the
object. I want the client to get a reference to the instance of BrowserInfo
that I created in step 1 above. Here is the code I'm using to create the
channel on the server side:

Dim chan As New TcpChannel(8082)

ChannelServices.RegisterChannel(chan)

RemotingConfiguration.RegisterWellKnownServiceType(BrowserInfo.GetType,
"xFIDS", WellKnownObjectMode.Singleton)

What must I do to ensure that the client gets the existing object?

Regards,

Rob Lowney, MCP, MCSD, MCT

----------------------------------------------------------------------------

This communication (including all attachments) is intended solely for the
use of the person or persons to whom it is addressed and should be treated
as a confidential xwave communication. If you are not the intended
recipient, any use, distribution, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately delete it from your system and notify the originator. Your
cooperation is appreciated.
Reply to this message...
 
    
xico
Rob,

I suggest you to take a look at the RemotingServices.Marshal method.
(ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemruntimeremotingremotingse
rvicesclassmarshaltopic.htm)

Cheers,
- xico -

----- Original Message -----
From: "Lowney, Rob" <Click here to reveal e-mail address>
To: "ngfx-remoting" <Click here to reveal e-mail address>
Sent: Thursday, July 04, 2002 2:48 PM
Subject: [ngfx-remoting] Remoting Question

[Original message clipped]

Reply to this message...
 
    
Lowney, Rob
That did it.... thanks

-----Original Message-----
From: xico [mailto:Click here to reveal e-mail address]
Sent: Friday, July 05, 2002 11:11 AM
To: ngfx-remoting
Subject: [ngfx-remoting] Re: Remoting Question

Rob,

I suggest you to take a look at the RemotingServices.Marshal method.
(ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemruntimeremotingremotingse
rvicesclassmarshaltopic.htm)

Cheers,
- xico -

----- Original Message -----
From: "Lowney, Rob" <Click here to reveal e-mail address>
To: "ngfx-remoting" <Click here to reveal e-mail address>
Sent: Thursday, July 04, 2002 2:48 PM
Subject: [ngfx-remoting] Remoting Question

[Original message clipped]

| [ngfx-remoting] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-remoting.asp = JOIN/QUIT

----------------------------------------------------------------------------

This communication (including all attachments) is intended solely for the
use of the person or persons to whom it is addressed and should be treated
as a confidential xwave communication. If you are not the intended
recipient, any use, distribution, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately delete it from your system and notify the originator. Your
cooperation is appreciated.
Reply to this message...
 
 
System.MarshalByRefObject
System.Runtime.Remoting.Channels.ChannelServices
System.Runtime.Remoting.Channels.Tcp.TcpChannel
System.Runtime.Remoting.RemotingConfiguration
System.Runtime.Remoting.RemotingServices
System.Runtime.Remoting.WellKnownObjectMode




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com