1. Installation 1.1, software installation first to install JDK (only installed JRE is not working, because the JSP page needs to be compiled), the latest official version is JDK1.4.2. Then extract the JBoss's compressed package to a directory, the directory name is generally "JBoss_ version number", JBoss's latest official version is JBoss4.0.0 (released on September 20, 2004). The following configuration is for JBoss3.2.5.1.2, the environment variable required for the environment variable has java_home and jboss_home. Environment variable Java_home is set to the installation path of JDK, and jboss_home is set to the path after JBoss decompression. The setting method is as follows: You can right-click on my computer, select "Properties" -> Select "Advanced" tab -> Click the Environment Variable button -> Click the "New" button of the system variable, then in the dialog box Enter the "Variable Name" for "java_home", the variable value is the JDK installation path, and finally determined. The same method adds JBoss_home. 1.3, running directly in the jboss / bin directory, the startup time is inefficient from 20 seconds to 1 minute, depending on the CPU speed and memory size. 1.4. Termination of JBoss is best not to close the console window when running JBoss, and directly shut down the console can cause an exception when JBoss will start next time. The way to close JBOSS is another open, perform a console window, execute the shutdown.bat batch file under the jboss / bin directory, but bring a parameter "-s", pay attention to the uppercase letters. For convenience, you can also create a shortcut. 1.5, the JBoss is installed for Windows2000 system service is not very convenient to start JBoss from the console. Although the debugging program can see a lot of information from the console, but sometimes JBOSS is automatically run as system service. This requires downloading a gadget Javaservice.exe to download: http://www.alexandriasc.com/software/javaservice/index.html I have downloaded the tool. 2. The deployment of the WAR file supports the heat deployment, that is, the WAR file is not required to restart JBoss (Tomcat does not support this feature) after the WAR file is deployed to the server. The deployment of the WAR file is very simple, copy the WAR file directly to the JBoss / Server / Default / Deploy directory. 2. The deployment of the WAR file supports the heat deployment, that is, the WAR file is not required to restart JBoss (Tomcat does not support this feature) after the WAR file is deployed to the server. The deployment of the WAR file is very simple, copy the WAR file directly to the JBoss / Server / Default / Deploy directory. 3, JBoss directory structure bin directory: Create a directory contains various script files and related files, have used Run.bat and Shutdown.bat two batch files. Client directory: Store configuration information and JAR files that may be used by Java client applications or external Web containers. DCS Directory: Save the XML files and DTD files referenced in JBoss (here also provide examples of how to write configuration files in JBoss). In this directory, there is a JCA configuration file that configures the data source for a database such as MySQL, Oracle, SQL Server, Postgres, etc.).
LIB Directory: The JAR file required to run the JBoss microennote here is stored. Do not store any of your own JAR files in this directory. Server directory: Each subdirectory here corresponds to a server configuration. This configuration is determined by the parameter "-c