回到第30章,我们讨论了一些关于使用会话 EJB 最佳实践和应用会话虚包(Session Facade)模式的技巧。我们讨论的事情之一是,会话虚包(Session Facade)的一个好的粒度级别是在服务层--这就是说您标识提供给一组通用客...
基于32个网页-相关网页
会话虚包模式可用于已知的和未知的参与者。
The Session Facade pattern can be used with both known and unknown actors.
始终使用会话虚包来启动有关所使用实体的全局事务。
Always use a session facade to start a global transaction around the entities used.
通过在这个方案中加入一个会话 bean,会话虚包解决了这些问题。
The Session Facade pattern resolves these issues by injecting a session bean into the scenario.
应用推荐