The business proxy pattern is used to decouple the presentation layer from the business layer. It is basically used to reduce the communication or remote lookup capabilities of the business layer code in the presentation layer code. The following entities are available at the business level.
Client -The presentation layer code can be Jsp,servlet or UI Java code.
Business Agent -a single entry-point class that provides access to a business service method for a client entity.
Lookup Service -the Lookup service object is responsible for obtaining access to the business object for the implementation of the relevant business and for providing the business of the delegate object.
Business Services -business service interfaces. The specific class implements this business service to provide the actual business implementation logic.
Implementing an instance
In this implementation instance, a business proxy pattern will be created for the various entities Client
,,, BusinessDelegate
BusinessService
LookUpService
JMSService
and EJBService
.
BusinessDelegatePatternDemo
This is a demo class that will be used BusinessDelegate
and used Client
to demonstrate the use of the business proxy pattern.
The structure of the business proxy pattern example is as shown in-
Click on the link to view the details
Java Business Proxy Mode ~