如何在 Glassfish (2.x) 中设置 RMI,以便注入远程 EJB

发布于 2024-08-28 13:07:44 字数 138 浏览 1 评论 0原文

目前,当我手动部署企业模块时,它们的远程 EJB 为空(未注入)。当我通过 NetBeans ide 进行部署时,会以某种方式设置 RMI 并注入 EJB。我的问题是需要在 Glassfish (2.x) 中配置什么,以便我可以手动部署模块,而不是通过 ide。

currently when I deploy enterprise modules manually, their remote EJBs are null (not injected). When I deploy via NetBeans ide, RMI is someway setup and EJBs are injected. My question is what needs to be configured in Glassfish (2.x) so I could deploy modules manually, not via ide.

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

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

发布评论

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

评论(1

荒人说梦 2024-09-04 13:07:44

(...)需要在 Glassfish (2.x) 中配置哪些内容,以便我可以手动部署模块,而不是通过 IDE。

没什么特别的据我所知。要么:

  • 使用自动部署将 foo.war/foo.ear/foo-ejb.jar/foo-application-client.jar(任何可以合法部署的内容)复制到autodeploy 目录,通常为 $GFv2_HOME/domains/domain1/autodeploy

  • 使用管理控制台:在右侧窗格的“常见任务”下,单击“部署企业应用程序 (.ear)”。

  • 使用命令行:使用asadmin部署命令行工具。请参阅部署< /a>.

请参阅第 3 章部署应用程序供完整参考。

(...) what needs to be configured in Glassfish (2.x) so I could deploy modules manually, not via IDE.

Nothing special AFAIK. Either:

  • Use autodeploy: copy foo.war/foo.ear/foo-ejb.jar/foo-application-client.jar (anything that can be legally deployed) to the autodeploy dir, which is typically $GFv2_HOME/domains/domain1/autodeploy.

  • Use the admin console: On the right pane, under Common Tasks, click Deploy Enterprise Application (.ear).

  • Use the command line: with the asadmin deploy command line tool. See deploy.

Refer to the Chapter 3 Deploying an Application for full reference.

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