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

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. 

主站蜘蛛池模板: 张掖市| 黎城县| 广宗县| 南召县| 莱芜市| 高要市| 长宁县| 两当县| 万山特区| 潼关县| 河池市| 杭锦后旗| 青河县| 南溪县| 嘉兴市| 望谟县| 柳江县| 崇礼县| 株洲县| 朝阳区| 利津县| 五峰| 蒙阴县| 怀集县| 得荣县| 柳河县| 天全县| 子洲县| 孝义市| 河源市| 肥东县| 石首市| 马龙县| 于田县| 本溪| 博客| 通化市| 常熟市| 东安县| 繁昌县| 丰台区|