.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification