Skip to main content
Email Password   helpLost your password?

Sample Image

Introduction

For server activated objects in remoting, we commonly tend to expose the server remote class to the client in order to build the proxy object in the client. I would say the main goal in remoting is to ensure that the code on the server does not have to be shipped to the client.

My article will explain how to hide the implementation of the server code using broker pattern.

The application contains the sample code for remoting using server activated objects and helps in understanding the broker pattern more. The application uses the TcpChannel with binary serialization.

My target audience are those who are aware of the basic remoting concepts :-)

Broker Pattern � Initial View

"Hide the implementation details of the remote service invocation by encapsulating them into a layer other than the business component itself."

Sample Image

The client application (referred as ClientAPP) will invoke the methods from the BrokerInterface as though it is invoking any local interface. However, the methods inside the client interface trigger services to be performed on the remote application (referred as ServerAPP). This is transparent to the client because the remote service object implements the same interface.

The BrokerInterface is a necessary abstraction that makes distribution possible by providing the contract about the service to the client, which the server provides without exposing the implementation details on the client side. Isolation, simplicity and flexibility are the major benefits while using this pattern.

Functionality

My application uses .NET remoting to retrieve the user details as a DataSet from the server. The following mechanism is used to implement this functionality:

Points of Interest

When using .NET remoting, you must pay careful attention to the deployment of the application into different assemblies. I repeat, the main goal is to ensure that the code on the server does not have to be shipped to the client.

Assemblies shipped to the client in this application:

Assemblies required in the server:

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralGood one Pin
Ashish Basran
10:14 15 Nov '06  


Last Updated 23 Feb 2005 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009