JBOSS目录结构详细说明

摘要:
如何下载以及安装配置,请参考:Windows下JBOSS安装配置图文教程二、现在主要了解一下JBOSS目录结构。要启动JBoss只要执行run.bat文件即可;要停止JBoss必须执行带参数的shutdown.bat。clientStoresconfigurationfilesandJARfilesthatmaybeusedbyaJavaclientapplicationoranexternalwebcontainer.Youcanselectarchivesasrequiredorusejbossall-client.jar.保存Java客户端应用或外部web容器,所需的配置文件和Jar文件。common该子目录lib的jar包,整个jboss共享。libContainsstartupJARsusedbyJBoss.DonotplaceyourownJARfilesinthisdirectory.包换JBoss所需的jar文件。这里目录会被搜索更新,所有修改的组件都会被自动重新部署。--libThisdirectorycontainsJARfilesneededbythisserverconfiguration.YoucanaddrequiredlibraryfileshereforJDBCdriversetc.AllJARsinthisdirectoryareloadedintothesharedclasspathatstartup.这个目录中包含这个服务器配置需要的JAR文件。

一、下载与安装。

如何下载以及安装配置,请参考:Windows下JBOSS安装配置图文教程

二、现在主要了解一下JBOSS目录结构。

1. 主目录: E:jboosjboss-6.1.0.Final

JBOSS目录结构详细说明第1张

bin

开始和停止JBoss的地方。

其中有两个主要的批处理文件:run.bat和shutdown.bat。要启动JBoss只要执行run.bat文件即可;要停止JBoss必须执行带参数的shutdown.bat。

一般运行命令:run -c 服务器名,例如:run -c all 或 run -c default 或自定义的服务器 run -c ejbtest。
注意,shutdown.bat文件直接执行并不会自动停止JBoss,它必须要输入参数,参数意义如下:
-h 显示帮助信息;
-D 设置系统属性;
-- 停止处理选项;
-s 停止用JNDI URL指定的远程服务;
-n 通过制定JMX名字来停止服务;
-a 适配到指定的JNDI名称的远程服务;
-u 指定用户名称;
-p 指定用户密码;
-S 停止服务器;
-e 从虚拟机退出;
-H 暂停(挂起)。
一般,我们使用-S选项来停止服务器。即执行shutdown -S。

client

Stores configuration files and JAR files that may be used by a Java client application (running outside JBoss) or an external web container. You can select archives as required or use jbossall-client.jar.
保存Java客户端应用或外部web容器(在JBoss之外运行),所需的配置文件和Jar文件。

common

该子目录lib的jar包,整个jboss共享。

docs

Contains the XML DTDs used in JBoss for reference (these are also a useful source of documentation on JBoss configuration specifics). There are also example JCA (Java Connector Architecture) configuration files for setting up datasources for different databases (such as MySQL, Oracle, Postgres).
包含一些jboss的XML DTD文件,还有一些案例和文档。

lib

Contains startup JARs used by JBoss. Do not place your own JAR files in this directory.
包换JBoss所需的jar文件。不要把你自己的jar文件放在这个目录。

server

Contains the JBoss server configuration sets. Each of the subdirectories in here is a different server configuration. JBoss ships with minimal, default, production, and all configuration sets. The subdirectories and key configuration files contained in the default configuration set are discussed in more detail in subsequent sections.
包含JBoss服务器实例的配置集合。这里的每个子目录就是一个不同的服务器实例配置。

JBOSS目录结构详细说明第2张

server目录下的文件夹:

--conf

The conf directory contains the jboss-service.xml bootstrap descriptor file for a given server configuration. This defines the core services that are fixed for the lifetime of the server.
conf目录中包含了这个服务器的启动描述文件jboss-service.xml。这个文件定义了服务器运行时间内提供那些固定的核心服务。

--data

The data directory is available for use by services that want to store content in the file system. It holds persistent data for services intended to survive a server restart. Serveral JBoss services, such as the embedded Hypersonic database instance, store data here.
服务中需要存储内容到文件系统的都会保存到data目录。JBoss内嵌的Hypersonic database的数据也是保存到这里的。

--deploy

The deploy directory contains the hot-deployable services (those which can be added to or removed from the running server). It also contains applications for the current server configuration. You deploy your application code by placing application packages (JAR, WAR and EAR files) in the deploy directory. The directory is constantly scanned for updates, and any modified components will be re-deployed automatically. This may be overridden through the URLDeploymentScanner URLs attribute.
deploy中包含可热部署的服务(可以在服务器运行时动态添加和删除)。当然这里还包含有这个服务器实例下的应用程序。你可以发布你的应用程序代码的压缩包(JAR,WAR和EAR文件)到这里。这里目录会被搜索更新,所有修改的组件都会被自动重新部署。

--lib

This directory contains JAR files (Java libraries that should not be hot deployed) needed by this server configuration. You can add required library files here for JDBC drivers etc. All JARs in this directory are loaded into the shared classpath at startup.
这个目录中包含这个服务器配置需要的JAR文件(这些java库不需要被热部署)。你可以添加需要的库文件到这里,如JDBC驱动等。所有的jar文件将在服务器启动的时候被加载到共享的classpath中。

--log

This is where the log files are written. JBoss uses the Jakarta log4j package for logging and you can also use it directly in your own applications from within the server. This may be overridden through the conf/log4j.xml configuration file.
日志文件会被写到这里。如果你要修改日志输出目录,可以通过配置conf/log4j.xml实现。

--tmp

The tmp directory is used for temporary storage by JBoss services. The deployer, for example, expands application archives in this directory.
tmp目录被用来提供JBoss服务的临时存储。

--work

This directory is used by Tomcat for compilation of JSPs.
提供给tomcat编译jsp文件用。

参考:http://www.cnblogs.com/phoebus0501/archive/2010/12/15/1907399.html

参考:疯狂java。

免责声明:文章转载自《JBOSS目录结构详细说明》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇RedHat8解决:This system is not registered to Red Hat Subscription Management错误。ES6(数组)下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

vue后台管理系统项目

项目介绍1.项目根目录文件 2.源码子目录结构 3.api目录 4.assets目录 5.components目录 6.mixins目录 7.permission目录 8.router目录 9.store目录 10.styles目录 11.utils目录 项目文件介绍1.安装element-ui组件实现按需加载 // 1.1.npm...

CentOS下的账户管理

在Linux中,每个文件都分3类权限:账户本身的权限,账户所在群组的权限和其它权限。账户和群组是多对多的关系,即一个账户可以属于多个群组,一个群组可以包含多个账户。但是,对于每一个已登录的账户,只能存在一个当前生效的群组(初始群组)。 账户管理相关配置文件如下:账户信息文件是/etc/passwd、账户密码文件是/etc/shadow、群组信息文件是/e...

Weblogic12c 单节点安装

第一节weblogic12c 的安装 WebLogic除了包括WebLogic Server服务器之外,还包括一些围绕WebLogic的产品,习惯上我们说的WebLogic是指WebLogic Server。WebLogic是美国bea公司出品的一个application server确切的说是一个基于Javaee架构的中间件,BEA WebLogi...

C++静态库与动态库(比较透彻)

这次分享的宗旨是——让大家学会创建与使用静态库、动态库,知道静态库与动态库的区别,知道使用的时候如何选择。这里不深入介绍静态库、动态库的底层格式,内存布局等,有兴趣的同学,推荐一本书《程序员的自我修养——链接、装载与库》。 什么是库 库是写好的现有的,成熟的,可以复用的代码。现实中每个程序都要依赖很多基础的底层库,不可能每个人的代码都从零开始,因此库的存...

基于Cmake+QT+VS的C++项目构建开发编译简明教程

目录 一、工具下载与安装 1.     Qt 2.     Visual Studio 2015 3.     Cmake 二、C++及Qt项目构建 1.     基于VS构建Qt项目 2.     基于Qt Creater构建,在VS中使用 用Qt Creater构建项目 用VS开发Qt Creater生成的项目 3.     基于Cmake构建 用CM...

Android项目目录结构模板以及简单说明

1) src  文件   编写java代码的文件目录,遵循java的命名规范、分包 2) gen  文件      包含了android的资源文件的标识符,是不需要程序员维护,是自动添加的 3) assets 文件  源生资源文件;保存应用的资源文件,例如:音频文件、视频文件、不经常被用户修改的文件 4) bin 文件  包含编译生成apk的应用程序xx...