ejb模式
EJB:企业Java Bean (EJB: Enterprise Java Bean)
EJB is an abbreviation of Enterprise Java Bean. EJB is one of many Java application programming interfaces (API) for flexible and manageable structuring of Java Platform, Enterprise Edition (JEE) and enterprise software. It is allowed by Sun Microsystems to make easier the process of growth and expansion of huge, fixed, assured and scalable distributed applications.
EJB是Enterprise Java Bean的缩写 。 EJB是用于Java平台,企业版(JEE)和企业软件的灵活且可管理的结构的众多Java应用程序编程接口( API )之一。 Sun Microsystems允许它简化大型,固定,有保证和可扩展的分布式应用程序的增长和扩展过程。
![EJB full form](https://www.includehelp.com/dictionary/Images/ejb.jpg)
EJB is a server-side and platform-independent software component that expresses the essential features of the business logic in scalable, assured, fixed, multilayer and distributed applications. Therefore, it makes easier the application developers effort by enabling them to focus on their business logic.
EJB是服务器端和平台无关的软件组件,在可伸缩,有保证,固定,多层和分布式应用程序中表达业务逻辑的基本功能。 因此,它使应用程序开发人员能够专注于业务逻辑,从而使他们的工作更加轻松。
EJB的要求 (Requirement of EJB)
When over several sites, the data and resources are distributed.
当位于多个站点上时,数据和资源将被分发。
When the application requires to be scalable and it is centric around performance.
当应用程序需要可伸缩且以性能为中心时。
When a user required organizing the transactions; the EJB web container can organize transaction limits.
当用户需要组织交易时; EJB Web容器可以组织事务限制。
When the application requires expressing the essential features of business logic; a disjunction between business logic and presentation.
当应用程序需要表达业务逻辑的基本特征时; 业务逻辑和表示之间的脱节。
EJB的类型 (Types of EJB)
EJB is divided into following three types,
EJB分为以下三种类型:
Session bean:
会话bean :
A session bean is a non-persevering object; it executes the clients business logic. E.g. For an application of banking, it can compute interest on deposits.
会话bean是一个非持久对象。 它执行客户端业务逻辑。 例如,对于银行业的应用程序,它可以计算存款利息。
Entity bean:
实体bean :
EJB constitutes preserving the object. It is a data constituent that preserves the data in the database.
EJB构成了保存对象。 它是将数据保留在数据库中的数据组成部分。
Message-driven bean:
消息驱动的bean :
It organizes messages that are occurring at the same time, so it is applied in an asynchronous communication framework like deriving JMS messages.
它组织同时发生的消息,因此将其应用于异步通信框架中,例如派生JMS消息。
EJB的用法 (Usage of EJB)
In a Web-centric application, the EJBs will dispense the business logic that settles down behind the Web-oriented constituents, such as servlets and JSPs.
在以Web为中心的应用程序中,EJB将分配业务逻辑,该业务逻辑位于Servlet和JSP等面向Web的组件后面。
Similarly like Web-centric applications, Thick client applications, like Swing applications will utilize EJBs.
与以Web为中心的应用程序类似,胖客户端应用程序(如Swing应用程序)将利用EJB。
EJBs can also dispense a connection between the Web technologies often used to convey Business-to-business (B2B) e-commerce and following the systems of business.
EJB还可以分配通常用于传达企业对企业(B2B)电子商务和遵循企业系统的Web技术之间的连接。
Enterprise Application Integration (EAI) applications can assimilate EJBs to conducting a task or function operations inside an organization and plotting a design between different applications.
企业应用程序集成(EAI)应用程序可以将EJB同化,以在组织内部进行任务或功能操作,并在不同的应用程序之间绘制设计。
优点 (Advantages)
Free security is dispensed, to access EJB.
分配了免费的安全性以访问EJB。
In EJB, Declarative transactions are dispensed.
在EJB中,分配了声明式事务。
Caching and pooling both are used in EJBs to enhance performance. EJB web containers conduct EJBs life cycles.
缓存和缓冲池都用于EJB中以提高性能。 EJB Web容器执行EJB的生命周期。
In EJB, Remote access proficiencies are available and are growing for scalability.
在EJB中,远程访问能力是可用的,并且随着可伸缩性的发展而增长。
Programming based on the usage of attributes or annotations is feasible.
基于属性或注释的使用进行编程是可行的。
Many complicated resources are accessible for free use.
许多复杂的资源可供免费使用。
翻译自: https://www.includehelp.com/dictionary/ejb-full-form.aspx
ejb模式