JBoss & Eclipse Integration

Source: Internet
Author: User
Tags jboss jboss server

Premise
* Installation of eclipse-jee-3.5.1
* Unzip the jboss5.1
*
* "JBoss Tools"-"Jbossas Tools" Plugin
Once the Eclipse-3.5.1-jee is installed, you should install the Jbossas tools plug-in in the JBoss Tools plug-in series to provide good support for Jboss5.1.
Installation steps:
* Find the update list by http://download.jboss.org/jbosstools/updates/stable/this URL
* Choose Jbossas Tools under Jboss Tools, just select the 1, then install,
* After installation is complete, restart eclipse
*
* Add jboss5.1 in Eclipse3.5.1-jee
To add a step:
* Open Eclipse's servers view
* Right-click the new server in the space------Opens the New Servers dialog box,
* Server Type Select "JBoss Community", "JBoss as 5.1" (Note: Do not select the JBoss from Eclipse, but choose the type of server provided by the JBoss Tools plug-in), set Ser Ver name, Next,
* Select JBoss Extract directory, set name (name for runtime), select Jre,configuration Default, and Next
* Set up JBoss Server Name, Next
* Add Project to JBoss,
* Click Finish to complete
*
* Configuring JBoss in Eclipse
Open the Servers view and double-click on the JBoss server, then the configuration file pops up, where you can configure the


------
JBoss Automatic Update at Eclipse Development

JBoss Add-on:
You should add JBoss through JBoss tools,

How JBoss is started:
JBoss must be started in debug mode, and if the project file is modified, it can be automatically updated to JBoss.
If you start JBoss in normal mode, only files such as JSPs can be updated.

Through the servers view, the content that is displayed by JBoss Server can determine the status:
* [started,synchronized] started, synchronized, the code in Eclipse is fully synchronized to the JBoss working directory
* [Started,republish] has started and needs to be republished, that is, some of the code in Eclipse needs to be synchronized to the JBoss working directory
*

After you start JBoss, modify the project file to synchronize the process to JBoss:
* JBoss original state is [started,synchronized], which is synchronized,
* After modifying a file, the JBoss server state first becomes [started,republish], which means that synchronization is required,
* Then eclipse will automatically publish the new code to the JBoss working directory, which may take a few seconds or longer, in the process of JBoss State [Started,republish],
* When eclipse synchronizes the code to JBoss completion, the JBoss state changes to [started,synchronized], which means that it is synchronized,
*

------
Note:

* Eclipse add JBoss, when choosing a server type, be aware that:
To select the type of server provided by the JBoss tools plug-in, "JBoss Community", "JBoss as XX",
Do not choose the type of JBoss server that comes with eclipse, or there may be some problems
* The location of the project is released by the JBoss Tools plugin for Eclipse
JBoss server, which is added through the JBoss Tools plugin, is launched through eclipse
The location of the project is published by default in the Eclipse workspace, not the default deploy directory of JBoss,
You can double-click the JBoss server in the servers view of Eclipse, open the configuration file, set the publish location under Deployment,
*

=====================================

When installing JBoss, there are a lot of situations, because all are updated from the foreign server, so it may fail.

My method of success:

Eclipse (Version:luna) editor, window--->server--->runtime environment--->add add server, select Download additional Server adapters, click on the list of related servers and select one to install.

JBoss & Eclipse Integration

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.