1.Using EJB makes applications harder to test
2. Using EJB makes applications harder to deploy
Complex classloader issues.
Complex deployment descriptors.
Slower development-deployment-test cycles.
3. Using EJB with remote interfaces may hamper practicing OO design
Interface granularity and method signatures dictated by the desire to minimize the number of remote method calls. If business objects are naturally fine-grained (as is often the case), this results in unnatural design.
The need for serialization determining the design of objects that will be communicated over RMI. For example, we must decide how much data should be returned with each serializable object – should we traverse associations and, if so, to what depth? We are also
forced to write additional code to extract data needed by remote clients from any objects
that are not serializable.
A discontinuity in an application's business objects at the point of remote invocation.
To allow remote access to application components
This is a compelling argument if remote access over RMI/IIOP is required. However, if web services style remoting is required, there's no need to use EJB.
To allow application components to be spread across multiple physical servers EJBs offer excellent support for distributed applications. If we are building a distributed application, rather than adding web services to an application that isn't necessarily distributed internally, EJB is the obvious choice.
To support multiple Java or CORBA client types
If we need to develop a Java GUI client (using Swing or another windowing technology), EJB is a very good solution. EJB is interoperable with CORBA's IIOP and thus is a good solution
for serving CORBA clients. As there is no web tier in such applications, the EJB tier provides the necessary middle tier. Otherwise, we return to the days of client-server applications and
limited scalability because of inability to pool resources such as database connections on behalf of multiple clients.
To implement message consumers when an asynchronous model is appropriate Message-driven beans make particularly simple JMS message consumers. This is a rare case in which EJB is "the simplest thing that could possibly work".
The availability of declarative transaction management via CMT is the most compelling reason for using EJB.
分享到:
相关推荐
《Expert One on One》是Oracle领域的一本权威学习书籍,专为数据库管理员(DBA)和开发者设计,提供了深入且实践性强的学习资源。这本书的核心目标是帮助读者提升在Oracle数据库管理与开发方面的技能。 首先,Oracle...
《Expert One-on-One J2EE Development without EJB》是由Rod Johnson和Juergen Hoeller编写的关于J2EE开发的权威著作。这本书着重讨论了在不使用EJB(Enterprise JavaBeans)的情况下进行J2EE开发的实践和策略,...
### Expert One-on-One J2EE Design and Development #### 关键知识点概述 《Expert One-on-One J2EE Design and Development》是一本深入探讨Java 2 Platform, Enterprise Edition (J2EE)设计与开发的专业书籍。...
《Expert one on one Oracle》是Oracle数据库领域的一本权威著作,深受广大数据库管理员、开发者和IT专业人士的喜爱。这本书深入探讨了Oracle数据库系统的核心概念和技术,旨在帮助读者掌握Oracle的高级特性和最佳...
Expert One-on-One J2EE Development Without EJB中文版.pdf.7z.001 (共3个)
Expert One-on-One J2EE Development Without EJB中文版.pdf.7z.002(共3个)
"Expert One-on-One: J2EE Design and Development" aims to demystify J2EE development. Using a practical focus, it shows how to use J2EE technologies to reduce, rather than increase, complexity. Rod ...
Expert One-on-One J2EE Development Without EJB中文版 一共10个文件,共需资源分:2,第一个和最后一个各1分 欢迎大家下载
《Apress_Expert one on one Oracle》是一本深入探讨Oracle数据库技术的专业书籍,被誉为DBA学习的宝典。本书不仅适合Oracle数据库管理员(DBA),也适用于希望深入了解Oracle数据库架构、性能优化、安全性以及并发...
Thomas大师的大作,英文名叫Expert One-On-One Oracle,中文翻译名叫Oracle专家高级编程,袁勤勇、张玉魁翻译,PDF扫描版,有大量SQL*PLUS脚本示例,帮助理解Oracle数据库原理,比Oracle官方文档通俗易懂,无论是...
这是Expert one-on-one Oracle压缩包的第二部分,也是最后一部分,大家用力下吧
《Expert One-on-One Oracle》是Oracle技术领域里一本极具权威性的著作,由Oracle的大师级人物Thomas Kyte撰写。这本书的中文译名为《Oracle专家高级编程》,为读者提供了深入理解Oracle数据库系统的专业知识和实践...
Expert One-on-One J2EE Development without EJB第三部分
Oracle专家级教程Expert one-on-one +Oracle培训讲义.rar
中文版EXPERT-ONE-ON-ONE-J2EE-DEVELOPMENT-WITHOUT-EJB.part2.rar
《Oracle专家一对一》是Oracle领域的权威著作,作者Oracle Tom以其深厚的专业素养,全面解析了Oracle数据库的核心知识。这本书深入浅出地介绍了Oracle的物理结构、逻辑结构以及调优技术,对于想要深入理解Oracle...
Expert One-on-One J2EE Development without EJB中文版
J2EE.DEVELOPMENT.WITHOUT.EJB中文版