Home > Articles > Microsoft > Other Microsoft

MCAD/MCSD Training Guide (70-310): .NET Remoting

This sample chapter covers the 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.
This chapter is from the book

Objectives

This Appendix 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.

Outline

  • Introduction
  • 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
    • Channels
      • HTTP Channels
      • TCP Channels
      • Choosing Between the HTTP and the TCP Channels
    • Formatters
      • 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

Study Strategies

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.

Introduction

The .NET Framework provides a platform for building next-generation distributed applications. I'll start this Appendix By introducing distributed applications and how they are different from conventional applications. The .NET Framework allows you to create distributed applications in various ways. Two popular approaches are .NET remoting and ASP.NET Web services. I'll discuss .NET remoting in this Appendix And cover ASP.NET Web services in the next two chapters.

In this chapter, you'll start learning about remoting by understanding its architecture. You'll learn about various remoting elements, such as remotable classes, remoting hosts, remoting clients, channels, formatters, and activation modes, and you'll also learn how these elements fit together to create a distributed application. I'll compare the various choices available with each of these remoting elements and explain how to decide between those choices in a given scenario.

The next part of the chapter is code intensive. You'll write code to practice creating small but fully functional distributed applications. While working with the step-by-step exercises, you'll develop various skills instrumental for designing remoting applications (and of course also for passing this exam).

I'll first show you how to create a class that can be remoted across network and application boundaries. I'll then show how to create a remoting host that hosts the class so that the client program can take the services offered by the remotable class. I'll also show how to create a client program that can instantiate a remote object and invoke methods on it.

I'll discuss various types of applications that can work as remoting host, such as a console application, a windows service, or IIS (Internet Information Services). I'll also discuss how you can use configuration files to conveniently modify the behavior of both the remoting host as well as the remoting client application.

Finally in this chapter, I'll show how to program the client application to invoke remote method calls asynchronously. Asynchronous method invocations, as you'll see, boost the responsiveness of the client application and keep users happy.

vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |