官术网_书友最值得收藏!

The benefits of the Business Delegate pattern

According to the old J2EE architecture, the benefits of a Business Delegate included:

  • Hiding the details of the underlying business service. In the case of remote services, using the Business Delegate makes naming and looking up services transparent to the presentation tier.
  • Handling business-service exceptions. The Business Delegate can catch service exceptions that have a technical meaning and translate them into a more friendly exception, generating application exception level to the client. For instance, Business Delegate could translate the eventual remote exceptions generated by a business service into a specific application exception.
  • A Business Delegate can transparently carry out a new retry of a failed service execution and hide the problem from the client.
  • In addition, a Business Delegate can cache references to remote business services in order to improve performance. Calling a remote service is a costly operation, and the repetition of remote service calls can greatly increase network traffic.

However, as new scenarios have arisen, things have evolved in the world of distributed application development. The JEE architecture has been changing in accordance with this. As modern mobile applications and web clients developed, new client applications, with rich JavaScript frameworks, have been emerging. As a consequence, the Business Delegate is seen as a bridge or door between the presentation tier (where technologies such as Servlet, JSP, and the JSF mechanism reside) and the business tier (where technologies such as EJB reside).

主站蜘蛛池模板: 焦作市| 宜黄县| 锦屏县| 江山市| 平安县| 呼玛县| 手机| 宝丰县| 丘北县| 开原市| 固始县| 石棉县| 天祝| 四子王旗| 永福县| 云林县| 喀喇沁旗| 扶余县| 龙口市| 策勒县| 日喀则市| 华蓥市| 琼海市| 株洲县| 肥西县| 龙江县| 英超| 扶风县| 阳春市| 安庆市| 长阳| 浑源县| 潞西市| 龙门县| 祁东县| 濉溪县| 长子县| 黑水县| 安图县| 美姑县| 本溪市|