Remoting has at least three sections:-
1. Server
2. Client: This connects to the hosted remoting object
3. Common Interface between client and the server .i.e. the channel
2. Client: This connects to the hosted remoting object
3. Common Interface between client and the server .i.e. the channel
Remoting takes an indirect approach to application domain communication by creating proxy objects. Communication is performed as below:
a. When a client object wants to create an instance of the server object, the remoting system at the client creates a proxy of the server object. The proxy object is at the client but behaves exactly like the remote object i.e. the server object.
b. The proxy passes the call information to the remoting system on the client. Client remoting system then sends the information to the remoting system on the server which then invokes the actual method on the server object. The remoting system on the server then passes the result information back to the client remoting system.
c. The client remoting system returns the results to the client object through the proxy.
Explain Singleton architecture of Remoting.
Singleton architecture is to be used when all the applications have to use or share same data

0 Comments:
Post a Comment