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

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).

主站蜘蛛池模板: 陕西省| 神木县| 大足县| 安陆市| 惠水县| 墨竹工卡县| 宿迁市| 清水河县| 包头市| 讷河市| 和田县| 鲁甸县| 渝中区| 西峡县| 濉溪县| 银川市| 临邑县| 鸡东县| 荔波县| 石城县| 台南县| 集贤县| 蕉岭县| 平乡县| 沙洋县| 白水县| 保亭| 鄂伦春自治旗| 丰镇市| 萍乡市| 吉安县| 六安市| 潢川县| 珠海市| 高唐县| 溧水县| 抚顺市| 丹阳市| 武汉市| 建始县| 乌拉特前旗|