EJB 3.1 Lite可以通过Remote接口公开吗? [英] Can EJB 3.1 Lite be exposed via Remote interface?

查看:127
本文介绍了EJB 3.1 Lite可以通过Remote接口公开吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我写了一个应用程序通过App Client的Remote界面和Web模块的Local界面来暴露我的业务逻辑。只是发现我们的服务器内存有限,所以我需要使Glassfish重量轻。不幸的是,GF Full Profile并不重量轻(使用GF 3.1.1 RC atm),因此我正在查看GlassFish的Web配置文件。现在有一个答案说远程接口不是这里的EJB Lite的一个功能(公开了一个远程客户端视图,这个功能不是EJB 3.1 Lite API的一部分),但是在7个月前, OP回答了自己的问题,所以我只想确认这个信息。

So I have written an application Expose my business logic via Remote interface for App Client, and Local interface for Web module. Just find out that our server has limited memory, so I need to make Glassfish to be light weight. Unfortunately, GF Full Profile is not light weight (using GF 3.1.1 RC atm), therefore I am looking at the Web profile of GlassFish. Now there is a answer saying that Remote interface is not a feature of EJB Lite here ( exposes a Remote client view. This feature is not part of the EJB 3.1 Lite API ), but it was 7 months ago, and the OP answered his/her own question, so I just want to confirm this information.

如果是真的,远程接口不是用于Web配置文件,那么我有没有办法使Glassfish更轻?我不需要Glassfish全面的功能,如JAX-WS,JAXB,JAX-RS ...我可以把它们拿出来吗?

If it is true the Remote interface is not for the web profile, then is there a way for me to make Glassfish lighter? I dont need a lot of feature from Glassfish full profile, like JAX-WS, JAXB, JAX-RS ... Can I take them out somehow?

推荐答案

根据EJB 3.1规范的表27,远程接口不是EJB Lite的一部分(本地/无接口:是,3.0远程:否,2.x远程家庭/组件:NO)

Per table 27 of the EJB 3.1 spec, remote interfaces are not part of EJB Lite ("Local / No-interface: YES", "3.0 Remote: NO", "2.x Remote Home/Component: NO")

(对不起,我不太了解Glassfish来回答您的其他问题。)

(Sorry, I don't know enough about Glassfish to answer your other question.)

这篇关于EJB 3.1 Lite可以通过Remote接口公开吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆