使用 EJB3 与 Eclipse Galileo 和 Glassfish v3 进行开发的工作流程是什么?

发布于 2024-08-24 02:37:42 字数 184 浏览 3 评论 0原文

我开始学习 EJB3,但在设置 Eclipse 时我有点迷失。我已经下载了 Glassfish v3 prelude 并在 Eclipse 中进行了设置,但是当我尝试将我的 EJB 项目发布到服务器时,我被告知该服务器与该项目的 EJB3 方面不兼容。

使用基于 JSP/Servlet 的客户端创建新的 EJB3 项目的正确步骤是什么?

I'm starting to learn EJB3 and I'm a bit lost when it comes to setting up Eclipse. I've got Glassfish v3 prelude downloaded and set up in Eclipse, but when I attempt to publish my EJB project to the server, I'm told that the server is incompatible with the EJB3 facet of the project.

What would the proper steps be to create a new EJB3 project with a JSP/Servlet-based client?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

口干舌燥 2024-08-31 02:37:42
  • 下载并安装 GlassFish v3(自 12 月起发布),而非 prelude 版本
  • 安装 GlassFish v3 服务器适配器(右键单击服务器视图,然后新建> 服务器,单击下载其他服务器适配器并安装 GlassFish v3 适配器)
  • 定义新的 GlassFish v3 服务器
  • 创建新的企业应用程序项目(来自文件 > 新建 > 其他... > Java EE > 企业应用程序项目
  • 编写一些代码,部署项目,进行一些更改并保存它们(更改得到由插件在保存时部署)并再次测试。请注意,GlassFish v3 在重新部署期间保留会话状态,这对于提高工作效率非常有用。查看这个说明这些功能的截屏视频
  • Download and install GlassFish v3 (which is out since december), not the prelude version
  • Install the GlassFish v3 server adapter (right-click the Server view, then New > Server, click on Download additional server adapters and install the GlassFish v3 adapter)
  • Define a new GlassFish v3 Server
  • Create a new Enterprise Application Project (from File > New > Other... > Java EE > Enterprise Apllication Project)
  • Write some code, deploy the project, do some changes and save them (changes get deployed by the plugin on save) and test again. Note that GlassFish v3 preserves session state across redeployments which is awesome for productivity. Check this screencast illustrating these features.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文