JBoss & eclipse Integration

Source: Internet
Author: User
Tags jboss jboss server
JBoss & eclipse Integration

I recently studied ejb3 and used jboss5.1 as the server. The development environment is eclipse3.5.1-jee,
Write down the method of eclipse3.5 & jboss5.1 integration,
(The following uses eclipse3.5.1 as an example. eclipse3.5.2 and eclipse3.6 should be the same)

------
Steps:

* Prerequisites:
* Installed eclipse-jee-3.5.1
* Decompress jboss5.1
*
* "JBoss Tools"-"jbossas Tools" plugin
After the eclipse-3.5.1-jee is installed, jbossas tools plug-ins in the JBoss tools plug-in series should be installed, in order to provide good support for jboss5.1,
Installation steps:
* Find the update list through the URL of the http://download.jboss.org/jbosstools/updates/stable/
* Select jbossas tools under JBoss tools. You only need to select this one and install it,
* After the installation is complete, restart eclipse
*
* Added jboss5.1 to eclipse3.5.1-jee.
Add steps:
* Open the servers view of Eclipse.
* Right-click the blank space and choose new> server to open the new server dialog box,
* Select "JBoss community"-> "JBoss as 5.1" for server type (Note: Do not select the JBoss plug-in eclipse, but select the server type provided by the JBoss tools plug-in ), set server name, next step,
* Select the JBoss decompress directory, Set Name (name for runtime), select JRE, and select default for configuration. Next
* Set JBoss server name. Next Step
* Add a project to JBoss,
* Click Finish.
*
* Configure JBoss in eclipse
Open the servers view and double-click the JBoss server. The configuration file is displayed, where you can perform various configurations,

------
JBoss automatically updated during eclipse Development

Add JBoss:
JBoss should be added through JBoss tools,

JBoss startup method:
JBoss must be started in debug mode. If the project file is modified, it can be automatically updated to JBoss,
If JBoss is started in normal mode, only files such as jsp can be updated,

In the servers view, the JBoss server displays the following content to determine the status:
* [Started, synchronized] has been started and synchronized. That is, the code in eclipse has been fully synchronized to the JBoss working directory.
* [Started, republish] is started and needs to be released again. That is, some of the Code in eclipse needs to be synchronized to the JBoss working directory.
*

After JBoss is started, modify the project file and synchronize the file to JBoss:
* The original JBoss status is [started, synchronized], that is, it has been synchronized,
* After the file is modified, the JBoss server status changes to [started, republish], indicating synchronization is required,
* Eclipse then automatically releases the new code to the JBoss working directory, which may take several seconds or longer. During this process, when the JBoss status is [started, republish],
* After eclipse completes Code Synchronization to JBoss, The JBoss status changes to [started, synchronized], indicating that the code has been synchronized,
*

------
Note:

* When adding a JBoss to eclipse and selecting a server type, note the following:
Select the server type provided by the JBoss tools plug-in, that is, "JBoss community"-> "JBoss as xx ",
Do not select the JBoss server type that comes with eclipse. Otherwise, some problems may occur,
* Eclipse JBoss tools plug-in release project location
After the JBoss server is started using eclipse,
The project is released in the eclipse workspace by default, instead of the default deploy directory of JBoss,
You can double-click the JBoss server in the servers view of eclipse to open the configuration file and set the publishing location under deployment,
*

Related Article

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.