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

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. 

主站蜘蛛池模板: 乡城县| 牙克石市| 海城市| 正镶白旗| 堆龙德庆县| 乌兰浩特市| 阿鲁科尔沁旗| 嘉定区| 宜川县| 邯郸县| 荃湾区| 哈尔滨市| 深水埗区| 潜江市| 馆陶县| 青川县| 古交市| 潜江市| 洛扎县| 广宗县| 正安县| 罗甸县| 通化县| 郓城县| 甘洛县| 平昌县| 浦东新区| 宝丰县| 福安市| 庆元县| 汾阳市| 朔州市| 柯坪县| 德昌县| 油尖旺区| 南城县| 正阳县| 静海县| 万安县| 安顺市| 犍为县|