【问题标题】:JBoss configuration filesJBoss 配置文件
【发布时间】:2015-01-14 20:07:34
【问题描述】:

我继承了一个运行 JBoss 7.x 服务器、java 后端等的单个实例的项目。我对 JBoss 完全陌生,我对文件结构的配置感到好奇),我拥有拥有什么以及在哪里。 documentation 的结构与我收到的不同,我不确定如何设置一个全新的 Web 应用程序服务器项目(即从头开始一个项目)。

例如,为什么我有多个standalone.xml 文件?即,

standalone.xml
standalone-ha.xml
standalone-full-ha.xml
standalone-full.xml

基本上,我正在寻找“您需要这些才能让您的应用运行”之类的指南。

我的 JBoss 文件夹有这个结构

|--appclient
|  |--configuration
|  |  `--appclient.xml
|  |  `-- logging.properties
|
|--bin
|  |--client
|  |  `-- jboss-client.jar
|  |--init.d
|  |  `-- jboss-as.conf
|  |  `-- jboss-as-standalone.sh
|  `--(a lot of .bat and .conf files)
|  
|--bundles
|   |--javax
|   |  |--servlet
|   |    |--api
|   |       |--v25
|   |           `--jbosgi-http-api-1.0.5.jar
|   |--org
|      |--apache
|      |--jboss
|      |--osgi
|      |--projectodd
|  
|--docs
|  |--examples
|  |--schema
|  
|--domain
|  |--configuration
|  |  `--domain.xml
|  |  `--host.xml
|  |  `--host-master.xml
|  |  `--host-slave.xml
|  |--data
|  |  |--content
|  |     `--(empty)
|  |--tmp
|  |  |--auth
|  |     `--(empty)
|  
|--modules
|  |--asm
|  |  |--main
|  |     |--asm
|  |        `--asm-3.3.1.jar
|  |        `--module.xml
|  |--ch
|  |--com
|  |--gnu
|  |--javaee
|  |--javax
|  |--jline
|  |--net
|  |--nu
|  |--org
|  |--sun
|  
|--standalone
|  |--configuration
|  |  `--(I know the standalone.xml files go here)
|  |--data
|  |--deployments
|  |  `-- (I know the .war files go here)
|  |--lib
|  |--log
|  |  `-- (what ever could this be?? *sarcasm)
|  |--tmp
|  
|--welcome-content

*显然我累了,没有在每个文件夹中标记所有内容

【问题讨论】:

    标签: java jboss jboss7.x


    【解决方案1】:

    您提供的链接是针对旧版本的 jboss (4, 5),这就是为什么它都是不同的 jej

    standalone*.xml 指定 jboss 提供给用户的服务。您可以选择您需要的服务,因此您不必将内存浪费在您不会使用的服务上。

    例如,standalone-full-ha.xml 提供所有服务,并且还以集群模式启动 jboss。 Standalone-full 拥有所有服务,但没有集群模式。 standalone.xml 是默认的,它包含部署应用程序所需的所有基本服务(请注意,它不包括 JMS 支持)。

    在您的standalone*.xml 的扩展部分中,您可以看到正在提供哪些服务。

    当你启动jboss时,如果你不使用-c参数,它将使用standalone.xml。如果您想使用standalone-full.xml(或任何其他配置,可以是自定义配置),您可以使用standalone.bat -c standalone-full.xml

    正如您所说,独立/部署是您部署应用程序的地方。请记住放置一个 .dodeploy 文件来告诉 jboss 部署您的应用程序。例如,myExample.war 应该有一个 myExample.war.dodeploy(如果你忘记了这个,日志会告诉你有一个应用程序要部署,并且正在等待 dodeploy 文件)

    希望对你有帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-11-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-30
      • 2018-04-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多