Dec. 26, 2007, 5:41 p.m.
posted by hashspark
Installing the JBoss Application ServerBefore going any further, make sure you have the Java SE JDK 5 or higher installed and correctly configured. To download the JBoss binaries, go to the JBoss web site at http://www.jboss.com/products/jbossas/downloads. You should be able to start the installation process directly from this page by clicking the Run Installer link. The first few screens of the installer are self-explanatory. They ask for a license acceptance as well as the installation directory. When you get to the Installation Type screen, make sure that you choose the EJB 3.0 installation option, as shown in Figure W-1. Figure W-1. Installation Type screen![]() The next screen allows you to choose what packages you want to have installed. For now, click Next and use the default settings. After the Packages screen, you will land on the Configuration Name screen shown in Figure W-2. Make sure you use the default value provided here because all of the workbook examples rely on this relative directory structure. When the installation completes, you can launch JBoss by executing the run script in the $JBOSS_HOME/bin directory:
That's it! You now have a fully working JBoss server! Figure W-2. Configuration Name screen![]() Discovering the JBoss Directory StructureInstalling JBoss creates the directory structure shown in Figure W-3. Figure W-3. JBoss directory structure![]() Table W-1 describes the purposes of the various directories.
If you want to define your own configuration, you can rerun the installer and choose a different configuration name when you get to the screen shown in Figure W-2. To start JBoss with a given configuration, use the -c parameter on the command line:
A run script with no parameters defaults to a configuration installed in the server/default directory. JBoss Configuration FilesAs the previous section described, JBoss' server directory can contain any number of directories, each representing a different JBoss configuration. The server/default/conf directory contains JBoss' configuration files. The purpose of the various files is discussed in Table W-2.
Deployment in JBossThe deployment process in JBoss is straightforward. In each configuration, JBoss constantly scans a specific directory, $JBOSS_HOME/server/default/deploy, for changes. This directory is generally referred to informally as the deploy directory. You can copy the following to this directory:
To redeploy any of these files (JAR, WAR, EAR, XML, etc.), simply overwrite it with a more recent version. JBoss will detect the change by comparing the files' timestamps, undeploy the previous files, and deploy their replacements. To redeploy a directory, update its modification timestamp by using a command-line utility such as touch. To undeploy a file, simply remove it from the deploy directory. |
- Comment


