View RSS Feed

My Java Tips

JBoss directory structure

Rate this Entry
by , 11-06-2011 at 05:45 PM (1811 Views)
You should be knowing the directory structure of JBoss server, in order to work efficiently with JBoss. I will target the directory structure in this post.


The jboss-4.0.2 directory contains following sub-directories:

Bin
Contains startup and shutdown scripts.

Client
Client folder contains configuration and JAR files that are required by Java client application or an external web container.

Docs
The XML DTDs used in JBoss for reference are contained in docs folder. For example: JCA (Java Connector Architecture) configuration files for setting up datasources for different databases (such as MySQL, Oracle, Postgres).

Lib
This folder is not to add our own JAR files. It only contains JARs required by the JBoss microkernel.

Server
Contains different server configuration. To select a particular configuration, run command is used with-c .

Letís understand the purpose of each folder in server directory (..\jboss-4.2.2.GA\server\default).




Conf
It contains configuration files like jboss-service.xml file which specifies the core services.

Data
Holds persistent data for services intended to survive a server restart. Serveral JBoss services,
such as the embedded Hypersonic database instance, store data there.

Deploy
It contains the hot-deployable services. Hot-deployable services are those which can be added to or removed while the server is still running. It is important to know that you can deploy your application in JAR, WAR and EAR form in the deploy directory. This directory is constantly
scanned for updates, and any modified components will be re-deployed automatically.

Lib
All the JAR files that are needed for server configuration are placed here. For instance JARs for JDBC drivers, log4j etc.

Log
All the log files are placed here. JBoss uses the Jakarta log4j package for logging.

Tmp
It is used fortemporary storage by JBoss services. The deployer expands application archives in this directory.

Work
Used by Tomcat for compilation of JSPs.

The server directory contains 3 folders with different configuring settings.

All
Default
Minimal

Each of these will have conf, deploy, lib and some other folders. If you run the server, few more folders will be created like data, temp, log and work.

Submit "JBoss directory structure" to Facebook Submit "JBoss directory structure" to Digg Submit "JBoss directory structure" to del.icio.us Submit "JBoss directory structure" to StumbleUpon Submit "JBoss directory structure" to Google

Tags: None Add / Edit Tags
Categories
JBoss

Comments