Installation configuration JBoss complete article

xiaoxiao2021-03-06  45

Last Modified: 2003.04.27

Installation configuration JBoss complete article

(Author: China Software qingrun) 1, Jboss configuration installed 1.1, Download download of Jboss Jboss is: http: //www.jboss.org/. The latest version is: JBoss2.2.1. It is recommended that you download the JBoss 2.2.1 and Tomcat3.2.1 integrated download packs, which avoids the problems configured between the two downloads. The download address is: http://prdownloads.sourceforge.net/jboss/jboss-2.2.1_tomcat-3.2.1.zip download After completion, extract to a directory, this directory name is E: / program files / jb_tom (this directory The name is the author's own custom). The following is as follows: E: / program files / jb_tom / jboss and e: / jb_tom / tomcat Note: The directory here has changed slightly. It is recommended that you add Tomcat_Home to classpath, otherwise E: / Program files / jb_tom / The file in jboss's run_with_tomcat.bat This file should be changed accordingly. 1.2, the configuration is running before starting JBoss, you should install JDK first. It is recommended to install the version of JDK1.3 (currently the latest official version is JDK1.3.1), and then set the system's ClassPath. JBoss does not have any configuration and modification, of course, it is best to add Tomcat_Home to classpath, so that the e: / program files / jb_tom / jboss's run_with_tomcat.bat in this file can be removed. Run E: / Program files / jb_tom / jboss Run_With_tomcat.bat this file, this file, Tomcat port is at 8080, JBoss is 8083, run http: // localhost: 8080 / will appear Tomcat Home, run http: // localhost: 8083 / Unparalleled blank page will appear. 2, test EJB 2.1, start JBoss: Method, this is not described here, because the previous has been written ^ & ^. 2.2, download and configure the EJB routine to http://www.wodejia.net/softdownload/java/interestejb.zip to download INTERESTEJB.ZIP, which is our EJB routine for testing. Unlock the compressed package, the following directory appears: Interest / COM INTEREST / DOCS ... Under all the files under this directory, all the files under the jboss installation directory, if there is no example content, create one, the structure is as follows: E : / program files / jb_tom / jboss / example / intend ... copy files E: / program files / jb_tom / jboss / example / intend / interest.jar to: E: / Program files / jb_tom / jboss / deploy.

Add as follows: E: / Program files / jb_tom / tomcat / lib / servlet.jar; E: / Program files / jb_tom / jboss / client / jboss-client.jar; E: / Program files / jb_tom / jboss /client/jnp-client.jar; :/program files / jb_tom / jboss / lib / ext / ejb.jar; E: / program files / jb_tom / jboss / example / intend / interest-client.jar To test Client Servlet calls EJB, you must: E: / program files / jb_tom / jboss / examples / interest, ejb.class and ejb.java copy to: E: / Program files / jb_tom / tomcat / webapps / root / web-inf / classes Directory E: / JB_TOM / JBOSS / Examples / INTEREST / COM, and all files below are copied to E: / program files / jb_tom / tomcat / webapps / root / web-inf / classes. Restart JBoss_Tomcat. 2.3, command the client test run: the command, enter the directory E: / program files / jb_tom / jboss / examples / interest java InterestClient appears: Got context Got reference Interest on 1000 units, at 10% per period, compounded over 2 periods IS: 210.0000000000000023 JBoss window will appear: [INTEREST] Someone Called `CalculateCompoundINTEREST!` 2.4, WEB CLIENT: http: // localhost: 8080 / servlet / ejb will appear: Interest on 1000 Units, AT 10% Per Period, Compounded Over 2 Periods IS: 210.00000000000023 JBoss window will appear: [Interest] Someone Called `CalculateCompoundINTEREST!` This has been successful. Note: JBoss-2.2.1_tomcat-3.2.1.zip is decompressed and copied to the E: / Program files / jb_tom directory.