Detailed instructions on how to install and configure Jboss
Source: Internet
Author: User
Article Title: describes in detail how to install and configure Jboss. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. 1. Jboss configuration and installation
(1) download Jboss
For Jboss. Yes: http://prdownloads.sourceforge.net/jboss/JBoss-2.2.1_Tomcat-3.2.1.zip
After the download is complete, decompress the package to a directory named E: \ program files \ jb_tom (the directory name is customized by the author ). The following sub-directories are available:
E: \ program files \ jb_tom \ jboss and E: \ jb_tom \ tomcat
Note: The Directory here is slightly changed. We recommend that you add atat_home to CLASSPATH; otherwise, the file "run_with_tomcat.bat" in E: \ program files \ jb_tom \ jboss must be modified to run properly.
(2) configure and run
Install JDK before starting Jboss. We recommend that you install JDK or later (the latest official version is JDK 1.3.1) and set the Classpath of the system. Jboss should not be configured or modified. Of course, it is best to add TOMCAT_HOME to Classpath. In this way, the TOMCAT_HOME file in E: \ program files \ jb_tom \ jboss before run_with_tomcat.bat can be removed.
Run the file run_with_tomcat.bat in E: \ program files \ jb_tom \ jboss. In this way, Tomcat port is 8080, Jboss is 8083, and http: // localhost: 8080/the tomcat homepage appears. Running http: // localhost: 8083/will display a blank page without errors.
2. Test EJB
(1) Start JBOSS:
Method? I will not describe it here, because I have already written ^ & ^.
(2) download and configure the EJB routine
To begin. Unpack the compressed package and the following directory appears:
Interest/com
Interest/docs
......
Copy all the files in this directory to the examples directory under the jboss installation directory. If there is no examples directory, create one by yourself. The structure is as follows:
Copy the file E: \ program files \ jb_tom \ jboss \ examples \ interest. jar to: E: \ program files \ jb_tom \ jboss \ deploy.
Add the following file to Classpath: 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; e: \ program files \ jb_tom \ jboss \ lib \ ext \ ejb. jar; e: \ program files \ jb_tom \ jboss \ examples \ interest \ interest-client.jar
To test whether the Client calls EJB through servlet, you must copy the EJB. class and EJB. java under: E: \ program files \ jb_tom \ jboss \ examples \ interest:
Copy the directory E: \ jb_tom \ jboss \ examples \ interest \ com and all the files under it to E: \ program files \ jb_tom \ tomcat \ webapps \ ROOT \ WEB-INF \ classes.
Restart JBOSS_TOMCAT.
(3) test and run the client under command:
Under command, enter the directory E: \ program files \ jb_tom \ jboss \ examples \ interest
Java InterestClient
:
Got context
Got reference
Interest on 1000 units, at 10% per period, compounded over 2 periods is: 210.00000000000023
The Jboss window appears:
[Interest] Someone called 'calculatecompoundinterest! '
(4) test and run the web client through Servlet:
Http: /localhost: 8080/servlet/EJB
:
Interest on 1000 units, at 10% per period, compounded over 2 periods is: 210.00000000000023
The Jboss window appears:
[Interest] Someone called 'calculatecompoundinterest! '
This operation is successful.
Note: Decompress jboss-2.2.1_tomcat-3.2.1.zip and copy it to the E: \ program files \ jb_tom directory.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service