Chapter 3. .NET Remoting

‚   ‚  


This chapter covers the following Microsoft-specified objective for the "Creating a Managing Microsoft Windows Services, Service Components, .NET Remoting Objects, and XML Web Services" section of the "Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and the Microsoft .NET Framework" exam:

Create and consume a .NET Remoting object.

  • Implement server-activated components.

  • Implement client-activated components.

  • Select a channel protocol and a formatter. Channel protocols include TCP and HTTP . Formatters include SOAP and binary.

  • Create client configuration files and server configuration files.

  • Implement an asynchronous method.

  • Create the listener service.

  • Instantiate and invoke a .NET Remoting object.

  • This exam objective tests your skill in designing distributed applications using .NET remoting, which is part of the .NET Framework SDK. You should know how to create a remote object, how to make it available to users via a remoting server, and how to write a client application that instantiates remote objects and invokes their methods .

    Remoting provides a very flexible and configurable environment for distributed applications. By virtue of this flexibility, .NET remoting applications can be designed in several different ways. In this exam, you are required to know how to make choices between various remoting configuration parameters (such as activation mode, channel, and formatter) for a given scenario.

    Remoting is configurable. All the remoting settings can be written in an XML-based configuration file. Keeping these settings in separate configuration files allows easier modification and maintenance of remoting applications. This objective requires you to distinguish between several configuration files such as the application configuration file, the web.config file, and the machine.config file.

    In distributed applications, methods are invoked across the network and several factors, such as network bandwidth and server availability, might cause your application to respond slowly as compared to a desktop application. This exam objective also tests your skill on creating asynchronous or responsive distributed applications.



Application Boundaries

Process Boundary

Application Domain Boundary

Distributed Applications

Evolution of Distributed Applications

Developing Distributed Applications Using the .NET Framework

.NET Remoting Architecture

Object Marshalling

Marshal-by-Value Objects

Marshal-by-Reference Objects


HTTP Channels

TCP Channels

Choosing Between the HTTP and the TCP Channels


The SOAP Formatter

The Binary Formatter

Channels and Formatters

Remote Object Activation

Server-Activated Objects

Client-Activated Objects

Comparing the Object Activation Techniques

Lifetime Leases

Applying .NET Remoting

Creating a Remotable Class

Creating a Server-Activated Object

Registering a Remotable Class As a Server-Activated Object Using the SingleCall Activation Mode

Instantiating and Invoking a Server-Activated Object

Registering a Remotable Class As a Server-Activated Object Using the Singleton Activation Mode

Creating a Client-Activated Object

Registering a Remotable Class As a Client-Activated Object

Instantiating and Invoking a Client-Activated Object

Using Configuration Files to Configure the Remoting Framework

Server-Side Configuration

Client-Side Configuration

Using Interface Assemblies to Compile Remoting Clients

Creating an Interface Assembly

Creating a Remotable Object That Implements an Interface

Creating a Remoting Client That Uses an Interface Instead of the Implementation

Using the Soapsuds Tool to Automatically Generate an Interface Assembly

Creating an Interface Assembly That Works with the Client-Activated Objects

Using IIS As an Activation Agent

Asynchronous Remoting

Understanding the Model of Asynchronous Programming in the .NET Framework

Applying Asynchronous Programming

Chapter Summary

Apply Your Knowledge


  • Write programs to create remotable objects, remoting hosts , and remoting clients. Understand what role each of these plays in a distributed computing scenario.

  • Understand the difference between server-activated objects and client-activated objects, HTTP channel and TCP channel, SOAP formatter and binary formatter. You should be ready to answer questions that ask you to choose between these remoting elements in a given scenario.

  • Use both declarative and programmatic configuration for distributed applications. Appreciate the advantages and shortcomings of each approach.

  • Understand how to make a client program responsive despite the delay in method calls across the network by using asynchronous programming techniques.

‚   ‚  

MCAD. MCSD Training Guide (Exam 70-310. Developing XML Web Services and Server Components with Visual Basic. NET and the. NET Framework)
MCAD/MCSD Training Guide (70-310): Developing XML Web Services and Server Components with Visual Basic(R) .NET and the .NET Framework
ISBN: 0789728206
EAN: 2147483647
Year: 2002
Pages: 166 © 2008-2017.
If you may any questions please contact us: