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 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模式