JBoss.orgCommunity Documentation

Chapter 6. Deploying Modules

6.1. Deploying on the Package Explorer
6.1.1. Deploying with Run On Server Wizard
6.2. Deploying with Servers View
6.3. Redeploying with Finger Touch

In this chapter it will be described how to deploy modules onto the server.

There are several ways to deploy to a server, provided by the Web Tools Platform (WTP) and some additional methods provided by JBoss Tools. These methods are described further in this chapter.

On the package explorer it is possible to publish either a project to a server or just a single file. Let's look at how to do this.

The root elements of the Servers View are the server objects. Expanding these, you will see the modules listed. With this in mind, we suggest two more ways to deploy resources onto the server.

For the first method, you should right click on a server and select the Add and Remove menu item.


This will bring up a dialog (see Figure 6.2, “Add or Remove Projects”) that allows you to either publish projects or modules to a server, or remove them from the server. If the selected module is a project like a Dynamic Web project, EJB project, or EAR project, it will be published as through Run on Server wizard, with a best-guess full package. If, however, the selected element is an archive from the Project Archives view (see Section 7.1, “Project Archives View”), it will be published according to the rules of that module type.

Nested beneath each server, there is a list of modules. Each module displays the module name, as well as decorated information on the module's various states. Right-clicking on the desired module and selecting Full Publish will force a full rebuild of the entire module.


Here, Incremental Publish is meant to enable publishing of only those parts where changes have been made.

You can also use the "Finger touch" button for a quick restart of the project without restarting the server:


The "Finger" touches descriptors dependent on project (i.e. web.xml for WAR, application.xml for EAR, jboss-esb.xml in ESB projects).