JBoss目录结构

转载自:http://www.iteye.com/topic/368548


Directory

Description

bin

Contains startup, shutdown and other system-specific scripts. Basically all the entry point JARs and start scripts included with the JBoss distribution are located in the bin directory.

包含了服务器启动,关闭和系统相关的脚本。基本上所有jar文件的进入点和启动脚本都在这个目录里面。

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文件。

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).

包含一些jbossXML 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 minimaldefaultproduction, and all configuration sets. The subdirectories and key configuration files contained in thedefault configuration set are discussed in more detail in subsequent sections.

包含JBoss服务器实例的配置集合。这里的每个子目录就是一个不同的服务器实例配置。

JBOSS_DIST/jboss-as/server/<instance-name>下面的目录结构

Directory

Description

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中包含可热部署的服务(可以在服务器运行时动态添加和删除)。当然这里还包含有这个服务器实例下的应用程序。你可以发布你的应用程序代码的压缩包(JARWAREAR文件)到这里。这里目录会被搜索更新,所有修改的组件都会被自动重新部署。

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文件用。

Config目录里面的内容

File

Description

jboss-minimal.xml

This is a minimalist example of the jboss-service.xml configuration file. (This is the jboss-service.xml file used in theminimal configuration file set)

jboss-service.xml最小配置的例子。

jboss-service.xml

jboss-service.xml defines the core services and their configurations.

定义核心服务及其配置。

jndi.properties

The jndi.properties file specifies the JNDI InitialContext properties that are used within the JBoss server when anInitialContext is created using the no-arg constructor.

jndi.properties定义了InitialContext属性,当一个InitialContext被无参数构造函数创建时会被使用到。

jboss-log4j.xml

This file configures the Apache log4j framework category priorities and appenders used by the JBoss server code.

包含了jboss使用的log4j日志配置。

login-config.xml

This file contains sample server side authentication configurations that are applicable when using JAAS based security.

这个文件包含了服务器端验证的配置的样例,当使用基于JAAS验证时会被用到。

props/*

The props directory contains the users and roles property files for the jmx-console.

这个目录包含了jmx-console所需的用户和角色配置文件。

standardjaws.xml

This file provides the default configuration for the legacy EJB 1.1 CMP engine.

这个文件是EJB 1.1 CMP 引擎的默认配置(EJB1.1遗留)

standardjboss.xml

This file provides the default container configurations.

提供了JBoss默认容器配置。

standardjbosscmp-jdbc.xml

This file provides a default configuration file for the JBoss CMP engine.

这个文件提供了JBoss CMP 引擎的默认配置文件。

xmdesc/*-mbean.xml

The xmdesc directory contains XMBean descriptors for several services configured in the jboss-service.xml file.

包含了jboss-service.xml 中定义的服务的XMBean描述文件。

deploy目录下的结构

<td style="padding-right: 6pt; padding-left: 6pt; padding-bottom: 1.8pt; padding-top: 1.8pt; background-color: transpar

File

Description

bsh-deployer.xml

This file configures the bean shell deployer, which deploys bean shell scripts as JBoss services.

这个文件用来配置bean shell部署器(把bean shell脚本发布为JBoss服务)

cache-invalidation-service.xml

This is a service that allows for custom invalidation of the EJB caches via JMS notifications. It is disabled by default.

这个服务允许自定义的提除EJB cacheJBossCahche invalidation机制。

client-deployer-service.xml

This is a service that provides support for J2EE application clients. It manages the java:comp/env enterprise naming context for client applications based on the application-client.xml descriptor.

提供给J2EE应用程序客户端的一个服务。它基于application-client.xml配置文件,管理java:comp/env企业级名字上下文给客户端程序使用。

ear-deployer.xml

The EAR deployer is the service responsible for deploying J2EE EAR files.

部署J2EE EAR应用的配置。

ejb-deployer.xml

The EJB deployer is the service responsible for deploying J2EE EJB JAR files.

部署J2EE EJB应用的配置。

hsqldb-ds.xml

hsqldb-ds.xml configures the Hypersonic embedded database service configuration file. It sets up the embedded database and related connection factories.

Hypersonic embedded database服务的配置文件

http-invoker.sar

http-invoker.sar contains the detached invoker that supports RMI over HTTP. It also contains the proxy bindings for accessing JNDI over HTTP.

http-invoker.sar包含了支持RMI over HTTP的调用者。它也包含通过HTTP存取JNDI的绑定。

jboss-aop-jdk50.deployer

This service configures the AspectManagerService and deploys JBoss AOP applications.

这个服务配置了AspectManagerService和部署JBoss AOP应用程序的功能。

jboss-bean.deployer

jboss-bean.deployer provides the JBoss microcontainer, which deploys POJO services wrapped in .beans files.

jboss-bean.deployer提供了JBoss微容器功能,通过它部署在.beans文件中包装了的POJO服务。

jboss-ha-local-jdbc.rar

jboss-ha-local-jdbc.rar is an experimental version of jboss-local-jdbc.rar that supports datasource failover.

jboss-ha-local-jdbc.rarjboss-local-jdbc.rar一个实验性的版本,用来支持数据源失效。

jboss-ha-xa-jdbc.rar

jboss-ha-xa-jdbc.rar is an experimental version of jboss-xa-jdbc.rar that supports datasource failover.

jboss-ha-xa-jdbc.rarboss-xa-jdbc.rar一个实验性的版本,用来支持数据源失效。

jboss-local-jdbc.rar

jboss-local-jdbc.rar is a JCA resource adaptor that implements the JCA ManagedConnectionFactory interface for JDBC drivers that support the DataSource interface but not JCA.

这是一个JCA的资源适配器,它实现的JCA ManagedConnectionFactory接口支持JDBC驱动提供DataSource接口,但不是JCA本身。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
对于jboss7.2版本,你可以使用以下步骤来配置redis的session共享: 1. 下载redis客户端JAR包,并将它们放在JBOSS_HOME/modules/system/layers/base/目录下。在这个目录下创建如下的目录结构: /com/redis/main/ 2. 将redis的JAR包文件命名为redis.clients.jedis-2.5.1.Final.jar并复制到上述路径下。 3. 创建一个名为module.xml的文件,并将其放入/com/redis/main/目录中。文件内容如下: <module xmlns="urn:jboss:module:1.0" name="com.redis"> <resources> <resource-root path="redis.clients.jedis-2.5.1.Final.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module> 4. 将redis的JAR包添加到classpath,将以下条目添加到JBOSS_HOME/bin/standalone.conf或JBOSS_HOME/bin/domain.conf 文件中: JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=com.redis" 5. 在web.xml文件的<distributable/>标签中添加以下标签: < distributable > < session-config > < session-store > < store-type >redis</ store-type > </ session-store > </ session-config > </ distributable > 6. 在standalone.xml或domain.xml文件的<subsystem xmlns="urn:jboss:domain:web:xxx">标签中添加以下标签: <distributed-cache name="dist" mode="SYNC"> <file-store/> <remote-store-cache name="dist" socket-timeout="10000" remote-timeout="5000"/> </distributed-cache> 7. 在standalone.xml或domain.xml文件的<subsystem xmlns="urn:jboss:domain:ee:xxx">标签中添加以下标签: <global-modules> <module name="com.redis"/> </global-modules> 8. 最后,在jboss7.2的安装目录下/bin 目录中启动JBOSS,让JBOSS使用redis进行session共享。 希望这些步骤对你有所帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值