Deploy Web applications on JBoss

Source: Internet
Author: User
Tags jboss application server jboss server

JBoss Introduction

JBoss fully implements the J2EE Service Stack:
EJB (Enterprise JavaBeans)
JMS (Java Message Service)
JTs/JTA (Java Transaction Service/Java transaction API)
Servlet and JSP (assumerver pages)
JNDI (Java Naming and Directory Interface)
It also provides some advanced features, such as clusters, JMX, and Web services. It also integrates IIOP (Internet Inter-ORB Protocol ).
Because the JBoss Code follows the lgpl license, you can use it for free in any commercial application without paying for it. JBoss is a Java-only Web Application Server. To ensure the normal operation of the JBoss server, ensure that JDK has been installed in the system before JBoss is installed. You can download the latest JBoss application server from the http://labs.jboss.com/jbossas/downloads/, this chapter selects JBoss 4.2.2.ga version.

2. Unzip and install
Decompress the downloaded package to a local disk, such as F:/Java/test/jboss-4.2.2.GA. Decompressed JBoss directory structure
 
 

3. Directory description:
Bin directory: contains files such as run. jar and shutdowm. jar, used to start and stop server scripts.
Client Directory: contains files related to the client (the Java Library (jars) required for communication between the client and JBoss ))
Docs Directory: contains the documents of the JBoss server and the examples folder.
Lib directory: mainly contains some jar files, which are loaded at JBoss startup and shared by all JBoss configurations (do not put your library here)
Server Directory: contains configuration files related to the server. Each configuration must be placed in a different subdirectory. The sub-directory name config-name indicates the configuration name. The JBoss Server Directory can contain any number of directories, each representing a different JBoss configuration.
JBoss contains three default configurations: minimial, default, and all.
Server/all directory: JBoss is fully configured to start all services, including clusters and IIOP.
Server/default directory: The default configuration of JBoss. It is used when the configuration name is not specified in the JBoss command flight.
Server/default/conf directory: JBoss configuration file.
Server/default/Data Directory: database file of JBoss. For example, an embedded database or jbossmq.
Server/default/deploy Directory: Hot deployment directory of JBoss. Any files or directories put here will be automatically deployed by JBoss. EJB, war, ear, and even services.
Server/default/lib directory: Some jar files, which are loaded when JBoss starts specific configurations.
Server/minimal directory:
4. JBoss configuration file
The server/config-name/conf directory contains the JBoss configuration file.
File description
------------------------------------------------------------------------
Jacorb. properties JBoss IIOP Configuration
Jbossmq-state.xml jbossmq (implementation of JMS) User Configuration
Definition of the JBoss Service (Class Loader, JNDI, deployer, etc.) that runs when the jboss-service.xml is started)
Log4j. xml log4j Configuration
Login-config.xml JBoss security configuration (jbosssx)
Default Configuration of the legacy CMP 1.1 engine of standardjaws. xml JBoss. Contains the JDBC ing information of JDBC-to-SQL for various databases, default CMP settings, log configuration, and so on.
In addition to the CMP 2.0 engine for JBoss, The standardjbosscmp-jdbc.xml is the same as standardjaws. XML,
 
5. Start JBoss
Run the run. BAT file in the bin directory. After the instance is started, go to http: // localhost: 8080 to test whether the instance has been started correctly.

6. Deployment in JBoss

The deployment process in JBoss is very simple and straightforward. In each configuration, JBoss constantly scans for changes to a special directory. Server/config-name/deploy is generally called the "deployment directory ".

You can copy the following files to this directory:

Any jar Library (the class will be automatically added to the classpath of JBoss)

EJB jar

War (Web appliction arrchive)

Ear (Enterprise Application archive)

XML file containing the JBoss mbean Definition

A directory that contains the decompressed content of EJB jar, war, or ear and ends with. jar,. War, or. Ear.

To redeploy any of the above files (jar, war, ear, XML, etc.), use the new version to overwrite the previous files.

 

7. Integration of JBoss in eclipse

 

 


Therefore, you can directly deploy Web applications in eclipse.

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/zerowzj/archive/2008/04/18/2304780.aspx

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.