如何在 Eclipse 3.5 中创建 EJB 2.1 bean

发布于 2024-08-07 18:54:14 字数 178 浏览 4 评论 0原文

我无法在最新版本的 Eclipse 中使用向导创建 EJB 2.1 beans。我只看到创建 EJB 3.0 beans 的选项。

我在创建“EJB 项目”时选择 2.1 作为“EJB 模块版本”。但现在当我想创建会话 bean 时,我看不到任何创建 2.1 bean 的选项。

是否有我需要启用的插件/设置?

I am not able to create EJB 2.1 beans using a wizard in the latest version of Eclipse. I only see options to create EJB 3.0 beans.

I selected 2.1 as the 'EJB Module Version' while creating the "EJB Project". But now when I want to create a session bean, I don't see any option to create a 2.1 bean.

Is there a plugin/setting I need to enable ?

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

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

发布评论

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

评论(2

無處可尋 2024-08-14 18:54:14

是的,没错,您只能使用 XDoclet 来完成此操作,因此在 Eclipse 首选项中,处理 xdoclet 库,并在 EJB 创建期间选择 XDoclet Entreprise Bean。

XDoclet 旨在让您创建所有必需的类和文件。

祝你好运。

Yes, it's right, you can do it only with XDoclet, so in eclipse preferences, handle the xdoclet libraries, and choose XDoclet Entreprise Bean during EJB creation.

XDoclet will aim you to create all required classes and files.

Good luck.

各自安好 2024-08-14 18:54:14

根据 文档创建EJB的唯一方法< eclipse 3.5 中的 3.0 是使用 XDoclet 创建的(我以前从未这样做过)。

According to documentation the only way to create EJB < 3.0 in eclipse 3.5 is creating with XDoclet (I've never done before).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文