Installation configuration JBoss complete article

zhaozj2021-02-08  494

Installation configuration JBoss complete article

1, JBoss configuration installation

1.1, jboss download

The download address of 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

After the download is complete, unzip it to a directory, this directory name is E: / program files / jb_tom (this directory name is the author's own). There is a subdirectory below:

E: / Program Files / JB_TOM / JBOSS and E: / JB_TOM / TOMCAT

Note: The directory here will change slightly.

1.2, configuration operation

You should install JDK before starting JBoss, it is recommended to install version of JDK1.3 (currently the latest official version is JDK1.3.1), and then set the ClassPath of the system. 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. Start JBoss:

Method, this is not described here because it has been written in front of it.

2.2, download and configure the EJB routine

To http://www.wodejia.net/softdownload/java/interestejb.zip download INTERESTEJB.ZIP, which is our EJB routine for testing. Unlock the compressed package, the following directory appears:

Interest / COM

INTEREST / DOCS

......

In the Examples directory of all files in the directory to the jboss installation directory, if there is no examples directory, 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 / intend.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 / example / interest, ejb.class and ejb.java are copied to:

E: / Program files / jb_tom / tomcat / webapps / root / web-inf / class under directory

Copy directory E: / JB_TOM / JBOSS / E: / CLRAM FILES / JB_TOM / TOMCAT / WebApps / Root / Web-INF / CLASSES.

Restart JBoss_Tomcat.

2.3, CLIENT Test Run under Command:

Under Command, enter the directory E: / Program files / jb_tom / jboss / example / intend

Java InterestClient

Will appear:

Got Context

Got Reference

Interest on 1000 Units, AT 10% Period, Compounded over 2 Periods IS: 210.00000000000023

The JBOSS window will appear:

[INTEREST] Someone Called `CalculateCompoundINTEREST! ​​'

2.4, WEB Client runs through the servlet test:

http: // localhost: 8080 / servlet / ejb

Will appear:

Interest on 1000 Units, AT 10% Period, Compounded over 2 Periods IS: 210.00000000000023

The JBOSS window will appear:

[INTEREST] Someone Called `CalculateCompoundINTEREST! ​​'

It 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.

转载请注明原文地址:https://www.9cbs.com/read-367.html

New Post(0)