Deploying Web Apps on JBoss

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

1. Introduction to JBoss

JBoss fully implements the Java EE Service stack: EJB (Enterprise JavaBeans) JMS (Java Message Service) Jts/jta (Transaction Service/java transacti On API) Servlet and JSP (JavaServer Pages) JNDI (Java naming and Directory Interface) It also provides some advanced features such as clustering, JMX, Web Service. It also integrates the IIOP (Internet inter-orb Protocol). Because the JBoss code follows the LGPL license, you can use it free of charge in any commercial application without paying for it. JBoss is a pure Java Web Application Server, in order to ensure the normal operation of JBoss server, before installing JBoss first ensure that the system has installed the JDK. The latest JBoss Application server can be downloaded from http://labs.jboss.com/jbossas/downloads/, and the version of JBoss 4.2.2.GA is selected in this chapter. 2 , decompression and installationUnzip the downloaded compressed package to a local disk, such as F:/java/test/jboss-4.2.2.ga. The JBOSS directory structure after decompression  3. Catalogue Description: bin Directory:Mainly includes Run.jar, Shutdowm.jar and other files for starting and stopping server scripts Client Directory:Primarily contains client-related files (Java libraries (JARS) required for client and JBoss communication) Docs Directory:Documents that primarily contain the JBoss server and the examples folder Lib Directory:Mainly includes some Jar,jboss loaded at startup and shared by all JBoss configuration (do not put your library here) Server Directory:Mainly contains the configuration files related to the server. Each configuration must be placed in a different subdirectory. The name of the subdirectory, Config-name, represents the configured name. The server directory for JBoss can contain any number of directories, each representing a different JBoss configuration. JBoss contains 3 default configurations: Minimial,default and Allserver/all Directories: Full configuration of JBoss, starting all services, including clusters and IIOP. Server/default Directory: Default configuration for JBoss. Used when the configuration name is not specified in the JBoss command navigation. server/default/conf directory: JBoss configuration file. Server/default/data directory: JBoss database file. For example, an embedded database, or JBOSSMQ. Server/default/deploy directory: The Hot deployment directory for JBoss. Any files or directories placed here will be automatically deployed by JBoss. EJB, WAR, EAR, and even service. Server/default/lib directory: Some jar,jboss load them when starting a specific configuration. Server/minimal directory: 4.JBoss the configuration fileThe server/config-name/conf directory contains the JBoss configuration file. File Description------------------------------------------------------------------------jacorb.properties JBoss IIOP Configuration J Bossmq-state.xml jbossmq (Implementation of JMS) User Configuration jboss-service.xml The definition of the service running at startup (class Loader,jndi,deployer, etc.) log4j.xml log4j configuration Login-config.xml JBoss Security Configuration (JBOSSSX) Standardjaws.xml JBoss Legacy CMP 1.1 engine's default configuration. Contains mapping information for the jdbc-to-sql of various databases, default CMP settings, log configuration, and so on. Standardjbosscmp-jdbc.xml, in addition to being used in the CMP 2.0 engine for JBoss, is the same as Standardjaws.xml 5 , start JBossRun the Run.bat file under the bin directory. After booting, enter the http://localhost:8080 test if it has started correctly

Deployment in 6.JBoss

The deployment process in JBoss is simple and straightforward. In each configuration,JBoss constantly scans for changes to a particular directory Server/config-name/deploy This directory is generally referred to as the "Deployment Directory".

You can copy the following files to this directory:

Any Jar library (the classes will be automatically added to JBoss classpath )

EJB JAR

WAR (Web appliction arrchive)

EAR (Enterprise application aRchive)

XML file containing the JBoss MBean definition

A directory that contains the extracted contents of an EJB jar,War , or ear and ends with a . Jar,. War , or . Ear .

To redeploy any of the above files (JAR,WAR,EAR,XML , etc.), overwrite the previous file with the new version.

7.Eclipse in JBoss the Integration

So you can also deploy Web applications directly in eclipse

Deploying Web Apps on JBoss

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.