j2ee| Server | Raiders Jboss+tomcat has become a free open source stable Java EE server, although the deployment of EE in JBoss no commercial Java server so convenient, basically by hand-written XML configuration files, But this will make it easier for us to understand the ins and outs of the Java EE.
Note that, just as the TOMCAT3 and Tomcat 42 versions vary greatly, JBoss 2 and JBoss 32 are significantly different, and in the case of JBoss 2, it is recommended to install JBoss 3. Jboss 3 installation is actually more simple, download decompression can be run, deployment of the same way.
1, from the JBoss home page http://www.jboss.org download JBoss integration Tomcat package.
Download ant from the Ant home page to publish the Java EE (. ear) or Web program (. War) or Java package (. jar)
2. Set environment variable
· Java_home = c:\jdk1.4--> Suppose you install the Java 2.0 SDK in c:\jdk1.4
· Ant_home = C:\jakarta-ant-1.4--> assumes that you install in C:\jakarta-ant-1.4
· Jboss_dist = C:\JBoss_Tomcat\jboss--> Suppose you install JBoss at C:\JBoss_Tomcat\jboss JBoss 3.0 There is no JBoss for this subdirectory
Settings in Windows 2000 are required to be set in the Control Panel--> system--> environment variable
3. Set path to join%java_home%\bin;%ant_home%\bin to be able to perform JDK and ANT
4, from Http://www.jboss.org/docs/manual/files/document. Tion-example.zip Download the JBoss application example. Extract to C:\JBoss_Tomcat
| |----Examples---> Application example installation directory |----Jboss |----Catalina-->TOMCAT 4.0
|
From Windows DOS window into the Examples/build directory execution:
A series of information appears, finally "build succesfully" to the Examples/build-example/interest directory, discovering the newly established interest.ear
5, start JBoss will interest.ear copy to the C:\JBoss_Tomcat\deploy directory, in the JBoss 3.x is Server/default/deploy directory. A series of information about deploying Interest.ear is seen in the JBoss control window.
6, through the http://localhost:8080/interest/access, will appear a form, according to submit, display normal. At this point, your Java Application Server installation completed.