- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 244字
- 2021-07-23 16:54:56
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).
推薦閱讀
- 30天自制操作系統(tǒng)
- 混沌工程:復(fù)雜系統(tǒng)韌性實(shí)現(xiàn)之道
- 直播系統(tǒng)開發(fā):基于Nginx與Nginx-rtmp-module
- 一學(xué)就會(huì):Windows Vista應(yīng)用完全自學(xué)手冊(cè)
- Kali Linux高級(jí)滲透測(cè)試
- 計(jì)算機(jī)系統(tǒng)的自主設(shè)計(jì)
- 新編電腦辦公(Windows 10+ Office 2013版)從入門到精通
- Heroku Cloud Application Development
- Hadoop Real-World Solutions Cookbook
- 大規(guī)模分布式系統(tǒng)架構(gòu)與設(shè)計(jì)實(shí)戰(zhàn)
- Multi-Cloud for Architects
- Java EE 8 High Performance
- Apache ShardingSphere權(quán)威指南
- OpenStack Trove Essentials
- 蘋果派