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

Benefits of Session Fa?ade

It is important not to expose the client to the complexity of using these fine-grained BOs. Frequent access to a large set of fine‐grained components greatly increases the complexity of BOs control. Transaction-control, security-management, and service-lookup are all examples of this complexity.

Like the GoF fa?ade pattern, the use of a coarse-grained layer in JEE decreases the coupling between the client and the business components represented by BOs of fine granularity (and we can think of a Session Fa?ade as an extension of the GoF fa?ade pattern in JEE). The Session Fa?ade pattern represents this coarse-grained layer. An architecture built with the Session Fa?ade provides a facade of more generic (or coarse-grained) methods for clients. The two biggest benefits of using the Session Fa?ade pattern are as follows:

  • It does not expose the high complexity of the business objects (BOs) and their relationships. 
  • It decreases network traffic. This occurs because remote calls are limited to coarse-grained methods exposed by Session Fa?ade instead of the fine-grained business objects.

Of course, EJB remote calling was used much more in the old JEE scenario in comparison to current architectures. It is important that this is taken into consideration. 

主站蜘蛛池模板: 米林县| 铁力市| 育儿| 商都县| 商水县| 特克斯县| 汝城县| 县级市| 轮台县| 眉山市| 合山市| 高要市| 邵阳市| 醴陵市| 巴林左旗| 江城| 富民县| 漳浦县| 肇州县| 麻栗坡县| 西和县| 桐柏县| 灵璧县| 茂名市| 新河县| 容城县| 惠州市| 响水县| 临江市| 崇明县| 岱山县| 弥勒县| 泸水县| 华安县| 株洲市| 额济纳旗| 杭锦后旗| 桐梓县| 敦化市| 仁布县| 施秉县|