在Introducing the Java EE 6 Platform(http://java.sun.com/developer/technicalArticles/JavaEE/JavaEE6Overview.html)中提到:
CDI unifies and simplifies the EJB and JSF programming models. It allows enterprise beans to act as JSF managed beans in a JSF application, and brings transactional support to the web tier.
————以上这句话,是不是否定了J2EE中提到的web tier和bussiness logic tier分离的思想。也许是给程序员多一种选择。我们可以选择web tier和bussiness logic tier分离也可以不分离。并且在不分离的同时,获得ejb container提供给程序开发的便利。

CDI统一并简化了EJB和JSF编程模型,允许企业Bean在JSF应用中作为托管Bean使用,并为Web层带来事务支持。这为开发者提供了Web层与业务逻辑层融合或分离的选择。
500

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



