The petstore application uses a facade session bean as a single interface to other enterprise bean business objects.
When a web tier controller receives the requests from the client, it then passes the event to the EJBtier controller, implemented as a session bean, which matches the event to the proper command(Command Pattern). Ultimately, the command invokes the appropriate action on a session facade, which executes the business logic.
The facade encapsulates and hides the complexityof these business objects from clients. In addition, because their implementation details are kept hidden by a facade, the objects can change without affecting the clients.
When a web tier controller receives the requests from the client, it then passes the event to the EJBtier controller, implemented as a session bean, which matches the event to the proper command(Command Pattern). Ultimately, the command invokes the appropriate action on a session facade, which executes the business logic.
The facade encapsulates and hides the complexityof these business objects from clients. In addition, because their implementation details are kept hidden by a facade, the objects can change without affecting the clients.

宠物商店应用使用外观会话Bean作为与其他企业Bean业务对象的单一接口。Web层控制器接收客户端请求后,将事件传递给EJB层控制器(会话Bean),其通过命令模式匹配事件,最终命令调用会话外观上的适当操作执行业务逻辑,外观封装并隐藏业务对象复杂性。
3235

被折叠的 条评论
为什么被折叠?



