Ejb 与 NetBeans

发布于 2024-12-22 19:39:34 字数 312 浏览 0 评论 0原文

我对 Ejb 很陌生,对此了解甚少。我已经下载了 NetBeans (7.01) 和 GlassFish 并运行了示例程序。但是,由于我对 Ejb 一无所知,所以我无法理解如何运行 这个NetBeans 上的程序。任何人都可以通过提供如何运行此程序的步骤来帮助我。提前致谢。

I am very new in Ejb and with very few knowledge about it. I have download NetBeans (7.01) and GlassFish and run a sample program. But, as I have no idea about Ejb, I can't understand how to run this program on NetBeans. Can anybody help me by giving steps how to run this program. Thanks in advance.

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

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

发布评论

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

评论(1

携君以终年 2024-12-29 19:39:34

NetBeans 安装在默认的 GlassFish Web 应用程序服务器上,用于部署您的企业项目。要确保服务器已在 IDE 中注册,请转到“服务”->“服务”->“服务”。服务器镶嵌并查找“GlassFish Server 3.x”。如果找到它,请打开项目属性嵌入:右键单击您的企业项目 ->属性->运行并确保“服务器”设置为“GlassFish Server 3.x”。然后您可以部署您的企业应用程序:右键单击项目 ->部署。 IDE 应启动应用程序服务器并部署您的应用程序。要运行已部署的项目,请右键单击 ->运行或输入教程中给出的浏览器地址,该地址映射到您的资源(例如 http://localhost:8080/书)。这样,除了 ejb 项目中的 persistence.xml 和 Web 项目中的 web.xml 之外,GlassFish 不需要其他设置文件。

如果您尚未安装 GlassFish 服务器,可以在此处下载。确保您尚未将其与 NetBeans 分开安装。

如果您想将应用程序部署在 JBoss 应用程序服务器上(而不是 GlassFish),您应该首先从 官方下载站点并安装。完成后,您可以在 NetBeans 中将其设置为服务器:服务 ->服务器->添加服务器。然后您可以按照上面的描述部署您的项目。

NetBeans installs on default GlassFish web application server, which deploys your enterprise projects. To ensure that server is registered in the IDE, go to Services -> Servers inlay and look for "GlassFish Server 3.x". If you found it, open projects properties inlay: right click on your enterprise project -> Properties -> Run and make sure, that "Server" is set to "GlassFish Server 3.x". Then you can deploy you enterprise application: right click on project -> Deploy. IDE should start application server and deploy your application. To run your deployed project right click -> Run or type in the browser address, given in your tutorial, which is mapped to your resource (e.g. http://localhost:8080/book). In this way GlassFish doesn't require additional settings files except persistence.xml in your ejb project and web.xml in the web project.

In case you don't have GlassFish server installed, you can download it here. Make sure you don't have it already installed separately from NetBeans.

If you want to deploy your app on JBoss application server (instead of GlassFish), you should first download it from official site and install. After you've done it, you can set it as server in NetBeans: Services -> Servers -> Add server. Then you can deploy your project as was described above.

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