如何在 Glassfish (2.x) 中设置 RMI,以便注入远程 EJB
目前,当我手动部署企业模块时,它们的远程 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没什么特别的据我所知。要么:
使用自动部署:将 foo.war/foo.ear/foo-ejb.jar/foo-application-client.jar(任何可以合法部署的内容)复制到
autodeploy
目录,通常为$GFv2_HOME/domains/domain1/autodeploy
。使用管理控制台:在右侧窗格的“常见任务”下,单击“部署企业应用程序 (.ear)”。
使用命令行:使用
asadmin部署
命令行工具。请参阅部署
< /a>.请参阅第 3 章部署应用程序供完整参考。
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. Seedeploy
.Refer to the Chapter 3 Deploying an Application for full reference.