The configuration of operating environment of EJB3.0 learning

Source: Internet
Author: User
Tags jboss

Run Environment configuration

1, tool download and installation
1> Download Installation JDK5.0
2> Download Installation eclipse3.2.x
3> Download and install the JBOSS-4.0.4.GA server
4> Download and install MyEclipse5.0 or other plugins
To install JBoss is to pay attention to several points:
1> do not install in the program Files directory, or some applications will lead to inexplicable mistakes.
2> Select Install option with Cluster feature "Ejb3-clustered"
3> When you enter the configuration name, enter "All"
4> When configuring JMX, check all selection referrals and enter Jmx-console username and password!
5 Run JBoss, the JBoss installation directory, into the bin directory, run Run-c all, if run directly, will be an error!
2, understand the use of JBoss directory

Directory Describe
Bin Start and close the JBoss script
Client Java libraries required for client communication with JBoss (JARs)
Docs Configured sample files (database configuration, etc.)
Docs/dtd A DTD for various XML files used in JBoss.
Lib Some jar,jboss are loaded at boot time and are shared by all jboss configurations. (Don't put your library here)
Server Various JBoss configurations. Each configuration must be placed in a different subdirectory. The name of the subdirectory indicates the name of the configuration. Jboss
Contains 3 default configurations: Minimial,default and all, can be selected when you install
Server/all JBoss is fully configured to start all services, including clustering and IIOP. (This is the configuration for this tutorial)
Server/default The default configuration for JBoss. Used when no configuration name is specified in the JBoss command air. (This is not installed in this tutorial
Configuration, if you do not specify a configuration name, startup will have an error)
Server/all/conf JBoss's configuration file.
Server/all/data JBoss's database file. For example, an embedded database, or JBOSSMQ.
Server/all/deploy The thermal deployment directory for JBoss. Any files or directories placed here will be automatically deployed by JBoss. EJB, WAR, EAR, and even service.
Server/all/lib Some jar,jboss load them when a specific configuration is started. (The default and Minimial configurations also contain this and the following two directories.) )
Server/all/log JBoss's log file
Server/all/tmp The temp file for JBoss

3. EJB Deployment
The deployment process in JBoss is simple and straightforward. In each configuration, JBoss constantly scans for changes in a particular directory:
[JBoss installation directory]/server/config-name/deploy.

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.