Table of Contents
To publish Fuse Integration projects to a server container, you must first add the server and its runime definition to the tooling’s Servers list. Then you can assign projects to the server runtime and set the publishing options for it.
Table of Contents
The Servers view lets you run and manage servers in your Red Hat JBoss Developer Studio environment. The supported servers are:
![]() | Note |
|---|---|
For step by step instructions on how to publish a Camel project to Red Hat JBoss Fuse, see . |
For the tooling to manage a server, you need to add the server to the Servers list. Once added, the server appears in the Servers view, where you can connect to it and publish your Fuse Integration projects.
![]() | Note |
|---|---|
If adding a Red Hat JBoss Fuse 6.2+ or 6.3 server, it is recommended that you edit
its installDir |
There are three ways to add a new server to the Servers view:
In the Servers view, click No servers
are available. Click this link to create a new server….
![]() | Note |
|---|---|
This link appears in the Servers view only when no server has been defined. If you defined and added a server when you first created your project, the Servers view displays that server. |
In the Define a New Server dialog, to add a new server:
Expand the Red Hat JBoss Middleware node to expose the list of available server options:

In the Server’s host name field, accept the default
(localhost).
![]() | Note |
|---|---|
The address of |
Click to open the server’s Runtime definition page:

![]() | Note |
|---|---|
If the server is not already installed on your machine, you can install it now by clicking Download and install runtime… and following the site’s download instructions. Depending on the site, you may be required to provide valid credentials before you can continue the download process. |
Next to Execution Environment, select the runtime JRE from the drop-down menu.
If the version you want does not appear in the list, click and select the version from the list that appears. The JRE version you select must be installed on your machine.
![]() | Note |
|---|---|
JBoss Fuse 6.3 requires either JRE version 1.8 or 1.7. |
Click to save the server’s runtime definition and open its Configuration details page:

Accept the default for SSH Port (8101).
The runtime uses the SSH port to connect to the server’s Karaf shell. If this
default is incorrect for your setup, you can discover the correct port number by
looking in the server’s
installDir/etc/org.apache.karaf.shell.cfg
file.
In the User Name field, enter the name used to log into the server.
For Red Hat JBoss Fuse, this is a user name stored in the Red Hat
JBoss Fuse
installDir/etc/users.properties
file.
![]() | Note |
|---|---|
If the default user has been activated (uncommented) in the
|
If a user has not been set up, you can either add one to that file
by using the format user=password,role (for example,
joe=secret,Administrator), or you can set one using the
karaf jaas command set:
jaas:realms — to list the realmsjaas:manage --index 1 — to edit the first
(server) realmjaas:useradd <username>
<password> — to add a user and associated
passwordjaas:roleadd <username>
Administrator — to specify the new user’s rolejaas:update — to update the realm with the
new user informationIf a jaas realm has already been selected for the server, you can discover the
user name by issuing the command
JBossFuse:karaf@root>jaas:users.
Click to save the server’s configuration details.
The server runtime appears in the Servers view. For example:

Expanding the server node exposes the server’s JMX node:

When you start a configured server, the tooling opens the server’s remote management console in the Terminal view. This allows you to easily manage the container while testing your application.
To start a server:
Click
.
The Console view opens and displays a message asking you to wait while the container is starting, for example:

![]() | Note |
|---|---|
If you did not properly configure the user name and password for opening the remote console, a dialog opens asking you to enter the proper credentials. See Adding a Server. |
After the container has started up, the Terminal view opens to display the container’s management console; for example:

The running server appears in the Servers view:

The running server also appears in the JMX Navigator view under Server Connections:

![]() | Note |
|---|---|
If the server is running on the same machine as the tooling, the server also has an entry under Local Processes. |
After you start a configured server, it appears in the Servers view and in the JMX Navigator view under the Server Connections node. You may need to expand the Server Connections node to see the server.
To publish and test your Fuse project application on the running server, you must first connect to it. You can connect to a running server either in the Servers view or in the JMX Navigator view.
![]() | Note |
|---|---|
The Servers view and the JMX Navigator view are synchronized with regards to server connections. That is, connecting to a server in the Servers view also connects it in the JMX Navigator view, and vice versa. |
Double-click the JMX[Disconnected] node:

Double-click the selected server:

The tooling populates the Properties view with a list of bundles that are installed on the server:

Using the Properties view’s Search tool, you can search for bundles by their Symbolic Name or by their Identifier, if you know it. As you type the symbolic name or the identifier, the list updates, showing only the bundles that match the current search string.
![]() | Note |
|---|---|
Alternatively, you can issue the In the |
When you are done testing your application, you can disconnect from the server without stopping it.
![]() | Note |
|---|---|
The Servers view and the JMX Navigator view are synchronized with regards to server connections. That is, disconnecting from a server in the Servers view also disconnects it in the JMX Navigator view, and vice versa. |
Right-click the JMX[Connected] node to open the context menu, and then select Disconnect.

You can shut down a server in the Servers view or in the server’s remote console in the Terminal view.
To stop a server:
.When you are finished with a configured server, or if you misconfigure a server, you can delete it and its configuration.
First, delete the server from the Servers view or from the JMX Navigator view. Next, delete the server’s configuration.
On the menu bar, select > > .
![]() | Note |
|---|---|
On Linux and Windows machines, select menu:[Window > Preferences]. |
You deploy Fuse Integration projects into a server runtime using the Eclipse publishing mechanism. To do so, you must have defined and added the server to the Servers view in the Fuse Integration perspective. For a step-by-step demonstration, see .
You can set up supported servers to publish assigned Fuse projects automatically or to publish them only when you manually invoke the publish command.
Each server runtime added to the Servers view has its own Overview page that contains its configuration, connection, and publishing details:

You may need to expand Publishing to expose the server runtime publishing options and default settings:
Never publish automatically — You must select this option to manually publish projects.
![]() | Important |
|---|---|
You must also disable the If server started, publish changes immediately option on the server’s Add and Remove page (for details see, Publishing Fuse projects manually. |
The default publishing option for server runtimes is Automatically publish when resources change.
In the Servers view, right-click the server runtime to open the context menu, and then select Add and Remove.

All resources available for publishing appear in the Available column.
To assign a resource (in this case, the CBRroute Fuse project) to the server runtime:
Select it, and click .
The selected resource moves to the Configured column:

At this stage, the time at which the assigned resource would actually be published depends on whether the server runtime was running and on the Publishing interval setting. However, if the server was stopped, you would have to manually publish the project after you started the server (for details, see Publishing Fuse projects manually).
Click the If server started, publish changes immediately option to enable it:

This option ensures that the configured project is published immediately once you click . The Automatically publish when resources change option on the server runtime Overview page ensures that the configured project is republished whenever changes made to the local project are saved.
Click .
The project appears in the Servers view under the server runtime node, and the server runtime status reports [Started,Publishing…].
When publishing is done, the status of both the server runtime and the project report is [Started,Synchronized]:

![]() | Note |
|---|---|
For a server runtime, Synchronized means that all published resources on the server are identical to their local counterparts. For a published resource, Synchronized means that it is identical to its local counterpart. |
If the Fuse project has already been assigned to the server runtime, make sure this option is disabled: If server started, publish changes immediately:
If the Fuse project has not been assigned to the server runtime, assign it now:
The project appears in the Servers view under the server runtime node, and the server runtime status reports [Started]:

In the Servers view, right-click the project’s node. In this example, select the CBRroute Fuse project to open the context menu:

Select Full Publish.
During the publishing operation, the status of both the server runtime and the project report [Started,Republish].
When publishing is done, the status of both the server runtime and the project report [Started,Synchronized]:

![]() | Note |
|---|---|
The tooling does not support the Incremental Publish option. Clicking Incremental Publish results in a full publish. |
After you have published a Fuse project to a server runtime, you can connect to the server and check that the project’s bundle was installed on it.
In the Servers view, expand the server runtime tree to expose the Bundles node and select it.
The tooling populates the Properties view with a list of bundles that are installed on the server:

To find your project’s bundle, either scroll down to the bottom of the list, or start typing the bundle’s Symbolic Name in the Properties view’s Search box. The bundle’s Symbolic Name is the name you gave your project when you created it.
![]() | Note |
|---|---|
Alternatively, you can issue the In the ![]() |