如何在JBoss 6中运行.ear文件? [英] How to run .ear file in JBoss 6?

查看:222
本文介绍了如何在JBoss 6中运行.ear文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了myProj.ear文件并将其复制到JBoss服务器的deploy文件夹中.启动jBoss服务器后如何运行我的项目?

I have created myProj.ear file and copied it into the deploy folder of the JBoss server.. How to run my project after starting the jBoss server?

我一直在使用war文件, 直到现在将其部署在Tomcat中才能运行 我的项目....我有一个新的 运行项目的要求 JBoss.所以,我转换了战争文件 使用命令Jar进入耳朵文件 -cvf myProj.ear .,是否应更改项目中的任何内容以运行 JBoss中的应用程序还是 将我的.ear文件复制到jBoss中 部署文件夹够了吗?

I have been using war file and deploying it in Tomcat till now to run my project.... I am having a new requirement to run the project in JBoss. So, I converted my war file into an ear file using the command Jar -cvf myProj.ear ., Should I change anything in my project to run the application in JBoss or just copying my .ear file in to the jBoss deploy folder is enough?

推荐答案

JBoss通常支持热部署-这意味着如果正确部署了您的应用程序(观看控制台),则可以通过浏览器(如果您有UI来访问它) )或通过Web服务,托管bean或您提供的任何其他界面.

您可以在JBoss 管理控制台上查看应用程序的状态.您可以通过输入JBoss安装的URL来访问它.如果您在本地运行香草JBoss,则应该可以在 http://127.0.0.1:8080/admin-console

下找到控制台 重申一下:无需显式启动,JBoss会为您处理.

JBoss normally support hot deployment - meaning that if your application was deployed correctly (watch the console), it can be accessed via the browser (if you have a UI) or via web services, managed beans or any other interface you have provided.

You can see the status of your application on the JBoss Admin Console. You can reach it by typing the URL of your JBoss installation. If you run your vanilla JBoss locally, you should be able to find the console under http://127.0.0.1:8080/admin-console

To reiterate: there is no explicit startup necessary, JBoss handles it for you.

这篇关于如何在JBoss 6中运行.ear文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆