eWebProgrammer  
Advanced Perl
Active Server Pages
EJB Architecture
Entity Beans
JavaBeans
JDBC
JSP and Servlets
Perl Programming
XML Programming

Related Links
Distributednetworks
OOPortal
RelationalDBDesign
SEOPearl
SEOMining
prev next prev next
Course Navigation
 
Lesson 4
Objective
Client Stub Proxy pattern
Describe how the proxy pattern applies to distributed objects.
   
The stub is an example of the proxy pattern.
It is used whenever you need to decouple the specifics of an object from its clients.
In this course we are decoupling the location and details of how to invoke the remote object from the client.
All the client sees is the interface of the proxy, and all the details of the remote object are hidden under its surface.
You will appreciate the simplicity of changing the implementation of the proxy.
In doing so, you can alter remote specific implementation details such as the network address of the remote object or the transport that is being used to communicate with the remote object.
All this can be done without changing a single line of code in the client. Details that change are usually location, security, transactions, etc.
EJB Proxy Pattern
A design pattern describes a solution to a problem that occurs over and over again when designing object-oriented computer systems.
The following SlideShow illustrates these steps.
(Please note that I have ignored the actual host systems and the details of the network and show only the object specifics.)
Image
EJB Proxy Pattern
  1. Proxy pattern:A pattern for implementing access to remote objects that provides a local object having the same interface as the remote object.
  2. Network address:The information that is required to access the skeleton of a remote object somewhere on a remote host.
  3. Design pattern: A generalized solution to a common frequently occurring object oriented design problem.
In the next lesson I will discuss the two aspects of a remote object:
  1. business logic and
  2. system services.
  Course navigation