SlideShare uma empresa Scribd logo
1 de 12
..NET RemotingNET Remoting
NIKHIL PALYEKARNIKHIL PALYEKAR
12RSSCA01512RSSCA015
IntroductionIntroduction
 .NET Remoting allows an application to make an object
available across remoting boundaries, which includes different
appdomains, processes or even different computers connected by
a network.
 The framework provides a number of services, including object
activation and object lifetime support, as well as communication
channels which are responsible for transporting messages to and
from remote applications.
.NET Remoting Components.NET Remoting Components
 A remote object: Which is an object that contain some
properties and methods located in one application domain and you
need to call its methods or properties from another application
domain or process.
 A remoting host: This is the host of the remotable object also
called as the server application. The main task of this host is to
listen to requests for the hosted remotable object.
 A client application: This is the application which makes
requests for the remotable object.
.NET Components cont….NET Components cont…
 A serializable object: Is an object that’s made available over
remoting by marking the class with <serializable()> attribute.
This object moves from machine to machine. E.g. Dataset
 A channel: Is a way of communicating between two machine.
.NET comes with two channels. TCP & HTTP.
 A formatter Object: Is used to serialize or marshal an object’s
data into a format in which it can be transferred down the channel.
 A messanger: Is a communication between client and server.
 A proxy: Is used on the client side to call into the remote
object. To use remoting , you don’t typically have to worry about
creating the proxy infact .NET can do it all for you.
 A message sink: Is an “Interceptor object” before message go
into the channel. This is done to attach more data, reformate data
before it is sent, rout debugging information or perform security
checking. We have two sink :- “envoy sink” on client side and
“server context sink” on server side.
.NET Components cont….NET Components cont…
Remoting ArchitectureRemoting Architecture
Types of Remotable ObjectsTypes of Remotable Objects
There are 3 types of remotable objects that you can configure and
choose from depending on the requirements of your application.
Single Call Object: Service one and only one request coming in
Singleton Call Object: Service multiple clients and is useful when
data needs to be shared explicitly between several clients.
Client Activation Object: Richer than singleton in many aspects as
they can store the state information between method calls for its specific
client.
SingleCall ObjectsSingleCall Objects
 Singlecall object act much like typically web service objects.
Each time a client calls a method on a singlecall object, an object
is created specially to handle that method call. Once the method
call is complete the object is not reused and its garbage collected
by the .NET runtime .
 These object must inherit from System.MarshalByRefObject
i.e. MBRO’s. They always run in the AppDomain and windows
process where they are created. Clients interact with them across
the network.
 Singlecall is the most commonly service object used in
remoting. This object provide similar to web services, MTS, and
COM+.
Singleton ObjectsSingleton Objects
 Singleton object are quite different from singleCall objects.
Only one singleton object exists at a time, and it may exists for a
long time and maintain states. All clients have equal shared access
to any states maintain by the singleton object.
 These object must inherit from System.MarshalByRefObject
i.e. MBRO’s.
 All methods calls are run on threads from the .NET thread pool.
This means that multiple simultaneous method calls can be
running on different threads at the same time.
 Singleton objects have a potentially unpredictable lifespan.
When the first client makes the first method call to the object it is
created. From that point forward, it remains in memory for an
indeterminate period of time.
Activated ObjectActivated Object
 Client-Activated Objects are different from both singleCall and
singleton Objects. This objects are created by a client application
and they remain in memory on the server over time. They are not
shared between clients. They can maintain data in memory during
their life time.
 These object must inherit from System.MarshalByRefObject
i.e. MBRO’s
 A client can create multiple activated objects on the server. The
objects will remain on the server until the client releases the
objects or the server Appdomain is reset. If the client doesn’t
contact the server for several minutes, the server will assume the
client abandoned the object and it will release them.
Activated Object conti…Activated Object conti…
 Activated objects typically don’t have any threading issue. The
only way ,multiple thread will be running in the same activated
object is if the client is multithreaded and multiple client threads
simultaneously make method calls to the same server-side
activated object.
For queries mail me onFor queries mail me on
nikks9.palyekar@gmail.comnikks9.palyekar@gmail.com

Mais conteúdo relacionado

Mais procurados

Communication primitives
Communication primitivesCommunication primitives
Communication primitivesStudent
 
Protection and Security in Operating Systems
Protection and Security in Operating SystemsProtection and Security in Operating Systems
Protection and Security in Operating Systemsvampugani
 
Corba concepts & corba architecture
Corba concepts & corba architectureCorba concepts & corba architecture
Corba concepts & corba architecturenupurmakhija1211
 
Corba introduction and simple example
Corba introduction and simple example Corba introduction and simple example
Corba introduction and simple example Alexia Wang
 
System models in distributed system
System models in distributed systemSystem models in distributed system
System models in distributed systemishapadhy
 
Chapter 5 slides
Chapter 5 slidesChapter 5 slides
Chapter 5 slideslara_ays
 
Remote Method Invocation in JAVA
Remote Method Invocation in JAVARemote Method Invocation in JAVA
Remote Method Invocation in JAVAJalpesh Vasa
 
Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Peter R. Egli
 
key distribution in network security
key distribution in network securitykey distribution in network security
key distribution in network securitybabak danyal
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layerNaiyan Noor
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design ConceptSharath g
 

Mais procurados (20)

Communication primitives
Communication primitivesCommunication primitives
Communication primitives
 
Protection and Security in Operating Systems
Protection and Security in Operating SystemsProtection and Security in Operating Systems
Protection and Security in Operating Systems
 
Corba concepts & corba architecture
Corba concepts & corba architectureCorba concepts & corba architecture
Corba concepts & corba architecture
 
Java RMI
Java RMIJava RMI
Java RMI
 
Corba
CorbaCorba
Corba
 
Corba introduction and simple example
Corba introduction and simple example Corba introduction and simple example
Corba introduction and simple example
 
Rmi ppt
Rmi pptRmi ppt
Rmi ppt
 
System models in distributed system
System models in distributed systemSystem models in distributed system
System models in distributed system
 
Chapter 5 slides
Chapter 5 slidesChapter 5 slides
Chapter 5 slides
 
Remote Method Invocation in JAVA
Remote Method Invocation in JAVARemote Method Invocation in JAVA
Remote Method Invocation in JAVA
 
Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Remote Method Invocation (RMI)
Remote Method Invocation (RMI)
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
Transport layer
Transport layerTransport layer
Transport layer
 
key distribution in network security
key distribution in network securitykey distribution in network security
key distribution in network security
 
Threads in JAVA
Threads in JAVAThreads in JAVA
Threads in JAVA
 
C# Private assembly
C# Private assemblyC# Private assembly
C# Private assembly
 
Unit 5
Unit 5Unit 5
Unit 5
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
CORBA
CORBACORBA
CORBA
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design Concept
 

Destaque

Overview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technologyOverview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technologyPeter R. Egli
 
The .net remote systems
The .net remote systemsThe .net remote systems
The .net remote systemsRaghu nath
 
7 Distribueret programming - .NET remoting
7 Distribueret programming - .NET remoting7 Distribueret programming - .NET remoting
7 Distribueret programming - .NET remotingjeanette89
 
Basics of WCF and its Security
Basics of WCF and its SecurityBasics of WCF and its Security
Basics of WCF and its SecurityMindfire Solutions
 
dotnet_remoting
dotnet_remotingdotnet_remoting
dotnet_remotingOPENLANE
 
14 Programación Web con .NET y C#
14 Programación Web con .NET y C#14 Programación Web con .NET y C#
14 Programación Web con .NET y C#guidotic
 
Serialization in .NET
Serialization in .NETSerialization in .NET
Serialization in .NETAbhi Arya
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishSvetlin Nakov
 

Destaque (20)

Overview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technologyOverview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technology
 
Net remoting
Net remotingNet remoting
Net remoting
 
Net remoting
Net remotingNet remoting
Net remoting
 
Net remoting
Net remotingNet remoting
Net remoting
 
.Net Remoting
.Net Remoting.Net Remoting
.Net Remoting
 
The .net remote systems
The .net remote systemsThe .net remote systems
The .net remote systems
 
7 Distribueret programming - .NET remoting
7 Distribueret programming - .NET remoting7 Distribueret programming - .NET remoting
7 Distribueret programming - .NET remoting
 
Basics of WCF and its Security
Basics of WCF and its SecurityBasics of WCF and its Security
Basics of WCF and its Security
 
Top 9 Features Of a Successful Android Application
Top 9 Features Of a Successful Android ApplicationTop 9 Features Of a Successful Android Application
Top 9 Features Of a Successful Android Application
 
dotnet_remoting
dotnet_remotingdotnet_remoting
dotnet_remoting
 
Session 9
Session 9Session 9
Session 9
 
14 Programación Web con .NET y C#
14 Programación Web con .NET y C#14 Programación Web con .NET y C#
14 Programación Web con .NET y C#
 
Serialization in .NET
Serialization in .NETSerialization in .NET
Serialization in .NET
 
Session 6
Session 6Session 6
Session 6
 
C sharp
C sharpC sharp
C sharp
 
.Net framework
.Net framework.Net framework
.Net framework
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - English
 
Ch08 Authentication
Ch08 AuthenticationCh08 Authentication
Ch08 Authentication
 
Evolution of wcf
Evolution of wcfEvolution of wcf
Evolution of wcf
 

Semelhante a NET Remoting Explained

Remote Method Invocation
Remote Method InvocationRemote Method Invocation
Remote Method InvocationSabiha M
 
DS R16 - UNIT-3.pdf
DS R16 - UNIT-3.pdfDS R16 - UNIT-3.pdf
DS R16 - UNIT-3.pdfVarshaBaini
 
iOS Multithreading
iOS MultithreadingiOS Multithreading
iOS MultithreadingRicha Jain
 
Vert.x for Microservices Architecture
Vert.x for Microservices ArchitectureVert.x for Microservices Architecture
Vert.x for Microservices ArchitectureIdan Fridman
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & DatabasesMuhammad Sajid
 
Remote Method Invocation (Java RMI)
Remote Method Invocation (Java RMI)Remote Method Invocation (Java RMI)
Remote Method Invocation (Java RMI)Sonali Parab
 
Module 3 remote method invocation-2
Module 3   remote method  invocation-2Module 3   remote method  invocation-2
Module 3 remote method invocation-2Ankit Dubey
 
Lesson10 behavioral patterns
Lesson10 behavioral patternsLesson10 behavioral patterns
Lesson10 behavioral patternsOktJona
 
Architectural patterns part 4
Architectural patterns part 4Architectural patterns part 4
Architectural patterns part 4assinha
 
JAVA design patterns and Basic OOp concepts
JAVA design patterns and Basic OOp conceptsJAVA design patterns and Basic OOp concepts
JAVA design patterns and Basic OOp conceptsRahul Malhotra
 
Pavel_Kravchenko_Mobile Development
Pavel_Kravchenko_Mobile DevelopmentPavel_Kravchenko_Mobile Development
Pavel_Kravchenko_Mobile DevelopmentCiklum
 

Semelhante a NET Remoting Explained (20)

Remoting and serialization
Remoting and serializationRemoting and serialization
Remoting and serialization
 
Remote Method Invocation
Remote Method InvocationRemote Method Invocation
Remote Method Invocation
 
Chapter 6-Remoting
Chapter 6-RemotingChapter 6-Remoting
Chapter 6-Remoting
 
RMI (Remote Method Invocation)
RMI (Remote Method Invocation)RMI (Remote Method Invocation)
RMI (Remote Method Invocation)
 
DS R16 - UNIT-3.pdf
DS R16 - UNIT-3.pdfDS R16 - UNIT-3.pdf
DS R16 - UNIT-3.pdf
 
iOS Multithreading
iOS MultithreadingiOS Multithreading
iOS Multithreading
 
Vert.x for Microservices Architecture
Vert.x for Microservices ArchitectureVert.x for Microservices Architecture
Vert.x for Microservices Architecture
 
IoT in salsa Serverless
IoT in salsa ServerlessIoT in salsa Serverless
IoT in salsa Serverless
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
 
Hibernate3 q&a
Hibernate3 q&aHibernate3 q&a
Hibernate3 q&a
 
Servlet session 9
Servlet   session 9Servlet   session 9
Servlet session 9
 
Remote Method Invocation (Java RMI)
Remote Method Invocation (Java RMI)Remote Method Invocation (Java RMI)
Remote Method Invocation (Java RMI)
 
Ch12
Ch12Ch12
Ch12
 
Module 3 remote method invocation-2
Module 3   remote method  invocation-2Module 3   remote method  invocation-2
Module 3 remote method invocation-2
 
TY.BSc.IT Java QB U6
TY.BSc.IT Java QB U6TY.BSc.IT Java QB U6
TY.BSc.IT Java QB U6
 
Lesson10 behavioral patterns
Lesson10 behavioral patternsLesson10 behavioral patterns
Lesson10 behavioral patterns
 
Architectural patterns part 4
Architectural patterns part 4Architectural patterns part 4
Architectural patterns part 4
 
JAVA design patterns and Basic OOp concepts
JAVA design patterns and Basic OOp conceptsJAVA design patterns and Basic OOp concepts
JAVA design patterns and Basic OOp concepts
 
Pavel_Kravchenko_Mobile Development
Pavel_Kravchenko_Mobile DevelopmentPavel_Kravchenko_Mobile Development
Pavel_Kravchenko_Mobile Development
 
Resume
ResumeResume
Resume
 

Último

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 

Último (20)

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 

NET Remoting Explained

  • 1. ..NET RemotingNET Remoting NIKHIL PALYEKARNIKHIL PALYEKAR 12RSSCA01512RSSCA015
  • 2. IntroductionIntroduction  .NET Remoting allows an application to make an object available across remoting boundaries, which includes different appdomains, processes or even different computers connected by a network.  The framework provides a number of services, including object activation and object lifetime support, as well as communication channels which are responsible for transporting messages to and from remote applications.
  • 3. .NET Remoting Components.NET Remoting Components  A remote object: Which is an object that contain some properties and methods located in one application domain and you need to call its methods or properties from another application domain or process.  A remoting host: This is the host of the remotable object also called as the server application. The main task of this host is to listen to requests for the hosted remotable object.  A client application: This is the application which makes requests for the remotable object.
  • 4. .NET Components cont….NET Components cont…  A serializable object: Is an object that’s made available over remoting by marking the class with <serializable()> attribute. This object moves from machine to machine. E.g. Dataset  A channel: Is a way of communicating between two machine. .NET comes with two channels. TCP & HTTP.  A formatter Object: Is used to serialize or marshal an object’s data into a format in which it can be transferred down the channel.
  • 5.  A messanger: Is a communication between client and server.  A proxy: Is used on the client side to call into the remote object. To use remoting , you don’t typically have to worry about creating the proxy infact .NET can do it all for you.  A message sink: Is an “Interceptor object” before message go into the channel. This is done to attach more data, reformate data before it is sent, rout debugging information or perform security checking. We have two sink :- “envoy sink” on client side and “server context sink” on server side. .NET Components cont….NET Components cont…
  • 7. Types of Remotable ObjectsTypes of Remotable Objects There are 3 types of remotable objects that you can configure and choose from depending on the requirements of your application. Single Call Object: Service one and only one request coming in Singleton Call Object: Service multiple clients and is useful when data needs to be shared explicitly between several clients. Client Activation Object: Richer than singleton in many aspects as they can store the state information between method calls for its specific client.
  • 8. SingleCall ObjectsSingleCall Objects  Singlecall object act much like typically web service objects. Each time a client calls a method on a singlecall object, an object is created specially to handle that method call. Once the method call is complete the object is not reused and its garbage collected by the .NET runtime .  These object must inherit from System.MarshalByRefObject i.e. MBRO’s. They always run in the AppDomain and windows process where they are created. Clients interact with them across the network.  Singlecall is the most commonly service object used in remoting. This object provide similar to web services, MTS, and COM+.
  • 9. Singleton ObjectsSingleton Objects  Singleton object are quite different from singleCall objects. Only one singleton object exists at a time, and it may exists for a long time and maintain states. All clients have equal shared access to any states maintain by the singleton object.  These object must inherit from System.MarshalByRefObject i.e. MBRO’s.  All methods calls are run on threads from the .NET thread pool. This means that multiple simultaneous method calls can be running on different threads at the same time.  Singleton objects have a potentially unpredictable lifespan. When the first client makes the first method call to the object it is created. From that point forward, it remains in memory for an indeterminate period of time.
  • 10. Activated ObjectActivated Object  Client-Activated Objects are different from both singleCall and singleton Objects. This objects are created by a client application and they remain in memory on the server over time. They are not shared between clients. They can maintain data in memory during their life time.  These object must inherit from System.MarshalByRefObject i.e. MBRO’s  A client can create multiple activated objects on the server. The objects will remain on the server until the client releases the objects or the server Appdomain is reset. If the client doesn’t contact the server for several minutes, the server will assume the client abandoned the object and it will release them.
  • 11. Activated Object conti…Activated Object conti…  Activated objects typically don’t have any threading issue. The only way ,multiple thread will be running in the same activated object is if the client is multithreaded and multiple client threads simultaneously make method calls to the same server-side activated object.
  • 12. For queries mail me onFor queries mail me on nikks9.palyekar@gmail.comnikks9.palyekar@gmail.com