dot net remoting

6
.NET REMOTING 1

Upload: mihir-parikh

Post on 15-Apr-2017

13 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Dot Net Remoting

1.NET REMOTING

Page 2: Dot Net Remoting

2Remoting It is a generic system for communications between different applications. The applications can be located on the same computer or remote computer .NET is a successor of DCOM. DCOM works well when applications exist on computers of similar type or on

similar network. DCOM does not support object models.

Page 3: Dot Net Remoting

3Remoting….

Web Service is another similar kind of functio Web Services can be only accessed over HTTP (stateless). .NET overcomes all these drawbacks. .NET remoting allows an application to make an object available

across remoting boundaries.

Page 4: Dot Net Remoting

4Steps in .NET remoting

1. Makes remote object available to the client through activation URL.

2. Client creates a new instance of the server class and uses it like a local object.

3. The remoting system creates a proxy object that represents the class and returns to the client object a reference to the proxy. The proxy does not implement the remote object’s functionality but provides an interface to it.

4. When a client calls a method, the remoting infrastructure handles the call, checks the type information and sends the call over the channel to the server process.

5. The listening channel picks up the request and forwards it to the server remoting system, which locates and calls the requested object.

Page 5: Dot Net Remoting

5

Page 6: Dot Net Remoting

6For implementing .NET Remoting.

1. Creation of a remotable object

2. Creation of a server to expose the remotable object

3. Creation of a client to use the remotable object.

(Each of the above step has a code as to how it has to be implemented.)