且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从远程独立客户端访问WAR中的EJB

更新时间:2023-11-14 10:34:58

根据网络配置文件和EJB 3.1规范,只需要Java EE Web配置文件产品提供EJB Lite,它不支持EJB的远程客户端。

According to the web profile and EJB 3.1 specs, Java EE web profile products are only required to provide EJB Lite, which doesn't support remote clients to EJBs.

但是它们可以提供远程ejb客户端连接作为产品的可选组件。

But they can provide remote ejb client connection as a product optional component.

因此,如果要将远程EJB打包在WAR中,则必须寻找提供此服务的Java EE Web服务器。并且请注意,其他Java EE 6 Web服务器也不需要这样做。

So if you want to package remote EJBs in a WAR you'll have to look for a Java EE web server that provides this service and be aware that the same behaviour isn't required in other Java EE 6 web servers.

有用的链接:
http://download.oracle.com/otndocs/jcp/javaee_web_profile-6.0-fr-e val-oth-JSpec /

http://download.oracle.com/otndocs/jcp/ejb-3.1-fr-eval-oth-JSpec/