简体   繁体   English

Web容器和EJB容器可以位于不同的Java EE服务器中吗?

[英]Can web container and EJB container be in different Java EE servers?

Can the web container and EJB container be in different Java EE servers for the same web application? Web容器和EJB容器可以位于同一Web应用程序的不同Java EE服务器中吗?

Like the web container is Tomcat and the EJB Container is JBoss? 像Web容器是Tomcat,EJB容器是JBoss吗?

Is this possible if the Web server and App server are on different machines? 如果Web服务器和App服务器位于不同的计算机上,这可能吗?

Yes, all of this is possible and such setups are not at all uncommon in enterprise settings. 是的,所有这些都是可能的,并且在企业设置中这样的设置并不常见。 After all, EJBs were desigend as business services to be used by multiple clients, not necessarily web applications. 毕竟,EJB被设计为多个客户端使用的业务服务,而不一定是Web应用程序。

Yes they can. 是的他们可以。

EJBs was initially a distributed architecture based on CORBA. EJB最初是基于CORBA的分布式架构。 Later (in EJB 2.0) local interfaces were introduced to avoid the expensive cost of distributed communication, but still you can provide remote interfaces to your EJBs to enable access from a remote Java VM. 稍后(在EJB 2.0中)引入了本地接口以避免分布式通信的昂贵成本,但您仍然可以为EJB提供远程接口以启用从远程Java VM的访问。

From the JavaEE CORBA overview : 来自JavaEE CORBA概述

EJBs use the RMI/IDL CORBA subset for their distributed object model, and use the Java Transaction Service (JTS) for their distributed transaction model. EJB使用RMI / IDL CORBA子集作为其分布式对象模型,并将Java Transaction Service(JTS)用于其分布式事务模型。 When Enterprise JavaBeans are implemented using the RMI-IIOP protocol for EJB interoperability in heterogeneous server environments, the standard mapping of the EJB architecture to CORBA enables the following interoperability: 当使用RMI-IIOP协议实现Enterprise JavaBeans以实现异构服务器环境中的EJB互操作性时,EJB体系结构到CORBA的标准映射可实现以下互操作性:

  • A client using an ORB from one vendor can access enterprise beans residing on an EJB server provided by another vendor. 使用来自一个供应商的ORB的客户端可以访问驻留在另一个供应商提供的EJB服务器上的企业bean。

  • Enterprise beans in one EJB server can access enterprise beans in another EJB server. 一个EJB服务器中的企业bean可以访问另一个EJB服务器中的企业bean。

  • A non-Java platform CORBA client can access any enterprise bean object. 非Java平台CORBA客户端可以访问任何企业bean对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM