Lecture 6 -.NET Remoting

Similar documents
Link-layer switches. Jurassic Park* LANs with backbone hubs are good. LANs with backbone hubs are bad. Hubs, bridges, and switches

One reason for controlling access to an object is to defer the full cost of its creation and initialization until we actually need to use it.

Developing Java Web Services. Duration: 5 days

CCNA 1 Chapter v5.1 Answers 100%


Dolby Conference Phone Support Frequently Asked Questions

REST; WebSocket (RFC 6455)

Chapter 2. The OSI Model and TCP/IP Protocol Suite. PDF created with FinePrint pdffactory Pro trial version

Connect+/SendPro P Series Networking Technical Specification

Network programming 14/01/2013. Introduction. Session objectives. Client/Server working model. Advanced Java Programming Course

CCNA 1 Chapter v5.1 Answers 100%

CCNA Security v2.0 Chapter 3 Exam Answers

These tasks can now be performed by a special program called FTP clients.

CCNA 1 Chapter v5.1 Answers 100%

Date: October User guide. Integration through ONVIF driver. Partner Self-test. Prepared By: Devices & Integrations Team, Milestone Systems

Log shipping is a HA option. Log shipping ensures that log backups from Primary are

1 Introduction Functions... 2

INVENTION DISCLOSURE

Single Sign-On (SSO) Release Notes Spring, 2010

2. What is the most cost-effective method of solving interface congestion that is caused by a high level of traffic between two switches?

SW-G using new DryadLINQ(Argentia)

NiceLabel LMS. Installation Guide for Single Server Deployment. Rev-1702 NiceLabel

Please contact technical support if you have questions about the directory that your organization uses for user management.

Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.

Getting the Most from REST and JSON

Creating a TES Encounter/Transaction Entry Batch

HW4 Software Version 3.4.1

1. What is a characteristic of Frame Relay that provides more flexibility than a dedicated line?

Dynamic Storage (ECS)

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

CCNA Security v2.0 Chapter 9 Exam Answers

Enterprise Installation

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

To start your custom application development, perform the steps below.

Proper Document Usage and Document Distribution. TIP! How to Use the Guide. Managing the News Page

Digital Imaging and Communications in Medicine (DICOM) Supplement 204 TLS Security Profiles

VMware AirWatch Certificate Authentication for Cisco IPSec VPN

But for better understanding the threads, we are explaining it in the 5 states.

Planning, installing, and configuring IBM CMIS for Content Manager OnDemand

Simple Object Access Protocol (SOAP)

HW4 Software version 3. Device Manager and Data Logging LOG-RC Series Data Loggers

TLS 1.2 for On-Premises Cisco Collaboration Deployments

AngularJS. Unit Testing AngularJS Directives with Karma & Jasmine

Programming Project: Building a Web Server

Managing User Accounts

CounterSnipe Software Installation Guide Software Version 10.x.x. Initial Set-up- Note: An internet connection is required for installation.

BMC Remedyforce Integration with Remote Support

Laboratory #13: Trigger

INSTALLING CCRQINVOICE

Infrastructure Series

BMC Remedyforce Integration with Bomgar Remote Support

Telkom VPN-Lite router setup User Manual Billion 800VGT

IT Essentials (ITE v6.0) Chapter 8 Exam Answers 100% 2016

AT&T Corporate Voice Mail Unified Messaging (CVM-UM) Quick Start

Common Language Runtime

SOLA and Lifecycle Manager Integration Guide

2. When an EIGRP-enabled router uses a password to accept routes from other EIGRP-enabled routers, which mechanism is used?

Cisco Tetration Analytics, Release , Release Notes

SVC-T using DM36x H.264 codec

CCNA 1 v5.1 Practice Final Exam Answers %

DELL EMC VxRAIL vcenter SERVER PLANNING GUIDE

Ephorus Integration Kit

DICOM Correction Proposal

CCNA 1 Chapter v5.1 Answers 100%

Packet Tracer - Skills Integration Challenge Topology

Stoneware Inc. Citrix NFuse Configuration. Stoneware, Inc. Configuration Sheet Date: January 2005

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

Cisco Smart Software Manager satellite

Final Report. Graphical User Interface for the European Transport Model TREMOVE. June 15 th 2010

Telkom VPN-Lite router setup User Manual Billion 810VGTX

Design Patterns. Collectional Patterns. Session objectives 11/06/2012. Introduction. Composite pattern. Iterator pattern

Power365. Quick Start Guide

Licensing the Core Client Access License (CAL) Suite and Enterprise CAL Suite

Introduction to Mindjet on-premise

Introduction to Eclipse

INTELLISNAP. TECHNOLOGY QUICK START GUIDE Pure Storage FlashArray. Publish Date: July 30, 2015 Distribution: Public Author: Jonathan Howard

ClassFlow Administrator User Guide

Creating Relativity Dynamic Objects

TRAINING GUIDE. Overview of Lucity Spatial

2. When logging is used, which severity level indicates that a device is unusable?

Interfacing to MATLAB. You can download the interface developed in this tutorial. It exists as a collection of 3 MATLAB files.

Getting started. Roles of the Wireless Palette and the Access Point Setup Utilities

CCNA Security v2.0 Chapter 2 Exam Answers

ROCK-POND REPORTING 2.1

ip.buffer App Note AN009 : Security Considerations


Getting Started with the Web Designer Suite

Last modified on Author Reason 3/4/2019 CHRS Recruiting team Initial Publication

CCNA 3 Chapter 8 v5.0 Exam Answers 2015 (100%) CCNA 5 Page 1

Technical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment

Networks: Communicating and Sharing Resources. Chapter 7: Networks: Communicating and Sharing Resources

Model WM100. Product Manual

Transmission Control Protocol Introduction

Overview of Data Furnisher Batch Processing

Business Directory. User Guide. User Guide Page 1

Course 6368A: Programming with the Microsoft.NET Framework Using Microsoft Visual Studio 2008

RTX includes new functionality, see the product Release Notes for a full list of new features.

Contents: Module. Objectives. Lesson 1: Lesson 2: appropriately. As benefit of good. with almost any planning. it places on the.

White Paper. Contact Details

Refreshing Axiom TEST with a Current Copy of Production Axiom EPM June 20, 2014

Transcription:

Lecture 6 -.NET Remting 1. What is.net Remting?.NET Remting is a RPC technique that facilitates cmmunicatin between different applicatin dmains. It allws cmmunicatin within the same prcess, between varius prcesses and between prcesses n different systems. 2. Explain the main elements f.net remting and their purpse. Remte Object : The bject that is running n server. T facilitate remting we need remtable bjects. There are tw methds by which a remte bject can be made available t a lcal client bject: Marshal by value, and Marshal by reference. Channels Channels are used t transprt messages t and frm remte bjects. Bth the client and the server must create a channel. A server channel must specify a well-knwn prt and client use this prt t access service at the server. Perfrming a methd call n the remte bject causes client channel bject t send a message t remte channel bject. Tw mst cmmn.net Remting channels are: i. HTTP Channel : Transprt messages t and frm remte bjects using SOAP prtcl. It is pssible t cnfigure the HTTP Channel t use binary frmatter. ii. TCP Channel : Transprt messages t and frm remte bject in binary frmat. It is als pssible t cnfigure the TCP channel t the SOAP frmatter. Messages Messages are sent thrugh channels. Messages hld infrmatin abut remte bject, called methds and arguments

Frmatter Defines hw messages are transferred int the channel. Frmatters are the bjects used t encde and serialize data int an apprpriate frmat befre they are transmitted ver a channel. Tw frmatter classes are prvided within.net: BinaryFrmatter and SapFrmatter. i. SOAP frmatter : The message is changed int XML and serialized, and required SOAP headers are added. ii. Binary frmatter : All messages are serialized int a binary stream. Prxy bject When a client creates an instance f a remte bject, it receives a prxy t the class instance n the server. The prxy knws abut the public methds f the real bject by using reflectin mechanism t read the metadata frm the assembly. All methds called n the prxy will autmatically be frwarded t the remte class and any results will be returned t the client. Frm the client's perspective, this prcess is n different than making a lcal call. 3. What is meant by server activatin? An activatin mde cntrls bject state management, bject sharing, bject life cycle, and the way in which the client binds t a Marshal by Ref bject. The client decides whether t use client- r server bjects. 4. What are the different activatin methds in.net remting? Client- Client Activated Objects are remte bjects whse lifetime is directly cntrlled by the client. The server creates a separate bject fr each client. Advantage - There is n delay until a methd call is made since bjects are created n new keywrd. Disadvantage - Only partially stateful (i.e. stateful nly fr a given client)

- Activated Objects (SAOs) are remte bjects whse lifetime is cntrlled by the server. The remte bject is instantiated/ when the client calls a methd n the prxy bject. Activated Objects are f tw types Single Call creates an bject fr each remte methd invcatin by clients. Advantage - In client, the bject is created n the new keywrd but if the client des nt call any server methds n that bject, a server bject has been created wastefully. Here, bjects are created when needed and destryed when nt needed. Disadvantage - They are als knwn as stateless because they cannt stre state between requests as there is nly ne request. Singletn One bject services all requests f all clients. Advantage - Als knwn as stateful as they can maintain state acrss requests. Disadvantage - This state hwever is glbally shared between all clients, which generally limit the usefulness f string state infrmatin. Client Singletn Single call 5. Write the fllwing cde. RemtingCnfiguratin.RegisterActivatedServiceType(type f(studentapp)); RemtingCnfiguratin.RegisterWellKnwnServiceType(ty pef(studentapp),"server",wellknwnobjectmde.singlet n); RemtingCnfiguratin.RegisterWellKnwnServiceType(ty pef(studentapp),"server",wellknwnobjectmde.singlec Client string url= "tcp://lcalhst:8001"; RemtingCnfiguratin.RegisterActivatedServiceType(type f(studentapp)); url = "tcp://lcalhst:8001/server"; RemtingCnfiguratin.RegisterWellKnwnClientType(typ ef(studentapp), url); url = "tcp://lcalhst:8001/server"; RemtingCnfiguratin.RegisterWellKnwnClientType(typ ef(studentapp), url);

all); 6. What are the runtime libraries which are needed t perfrm.net Remting? System.Runtime.Remting 7..NET Remting is a cutting edge technlgy fr pint-t-pint interperable applicatin. Cmment n this. Cutting-ege -.Net Remting is nt the latest and mst efficient technlgy. There are new technlgies, sme f which are meant t be replacements f remting. E.g. SOA, WCF Pint-t-pint -.Net Remting can be used t cmmunicate within the same prcess, between varius prcesses and between prcesses n different systems. Interperable -.NET Remting is nt hetergeneus and is prprietary and is therefre, nt interperable. Pint-t-pint cmmunicatin can be perfrmed nly within.net cmpatible languages and platfrms. 8. What is the purpse f using cnfiguratin files t cnfigure the remting details? String cnfiguratin details in the cde has a drawback wuld mean that each time the cnfiguratins are changed applicatin needs recmpiling. Rather than hard-cding the registratin f remte bjects and their channels, we can use a cnfiguratin file. This functinality is available thrugh the System.Runtime.Remting assembly. The details f the cnfiguratin are written in an applicatin cnfiguratin file in XML frmat. 9. In.Net Remting if the server registratin fails the client can smetimes still wrk. Cmment. Even if the registratin with the server fails n the client side, the client can still execute since the server s exe is referenced by the client. In this scenari, the server bject is created n the client side. Methds will execute since there is a lcal server bject but these will nt be remte calls. 10. Explain the differences between marshal by value and extending marshal be reference. Marshal by value These classes are serialized thrugh the channel. Analgus t passing parameters by value.

Classes that shuld be marshaled must be marked with Serializable attribute. Marshal by reference The bjects are nt passed thrugh the channel, but a prxy is returned instead. Analgus t passing parameters by reference. A class marshaled by reference must derive frm MarshalByRefObject.