此内容没有您所选择的语言版本。
Chapter 28. Managing servers
The Servers panel enables you to run and manage servers in your Red Hat Developer Studio environment. The supported servers are:
- Red Hat JBoss Fuse Server—versions 6.x
- Apache Karaf Server—versions 2.x, 3.0
- Apache ServiceMix Server—versions 4.5, 5.x
Note
For step by step instructions on how to publish a Camel project to Red Hat JBoss Fuse, see Red Hat JBoss Fuse Tooling Tutorials, To Publish a Fuse Project to Red Hat JBoss Fuse.
28.1. Adding a Server
Overview
For the tooling to manage a server, you need to add the server to the Servers list. Once added, the server appears in Servers panel, where you can connect to it and publish your Fuse projects.
Note
If adding a Red Hat JBoss Fuse 6.0 or 6.1 server, it's recommended that you edit its installDir
/etc/users.properties
file and add user information, in the form of user=password,role
, to enable the tooling to establish an SSH connection to the server.
Procedure
You can add a new server to the Servers panel in three ways:
- In Servers panel, click the link No servers are available. Click this link to create a new server....NoteThis link appears in Servers panel only when no server has been defined.
- Right-click in Servers panel to open the context menu, then select
. - On the menu bar, select
.
- In the Define a New Server dialog, expand the
JBoss Fuse
node to expose the list of available server options: - Click the server you want to add.
- In Server's host name, accept the default (
localhost
).NoteThe address oflocalhost
is0.0.0.0
. - In Server name, accept the default, or enter a different name for the runtime server.
- Click Runtime definition page:to open the server'sNoteIf the server is not already installed on your machine, you can install it now by clicking the link 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.
- Accept the default for Name.
- In Home Directory, enter the path where the server runtime is installed, or click to find and select it.
- Select the runtime JRE from the drop-down menu next to Execution Environment.If the version you want does not appear on the list, click thebutton and select the version from that list. The JRE version you select must be installed on your machine.NoteJBoss Fuse 6.2 requires either JRE versions 1.7 or 1.8.
- Leave the Alternate JRE option as is.
- Click Configuration details page:to save the server's runtime definition and open its
- 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 User Name, enter the name used to log into the server.In the case of Red Hat JBoss Fuse, this is a user name stored in the Red Hat JBoss Fuse installDir
/etc/users.properties
file.NoteIf the default user has been activated (uncommented) in the/etc/users.properties
file, the tooling autofills User Name and Password with the default user's name and password, as shown in Step 10. The default user is already activated in JBoss Fuse 6.2, but not in JBoss Fuse 6.0 or 6.1.If one has not been set, you can either add one to that file using the formatuser=password,role
(for example,joe=secret,Administrator
), or you can set one using the karafjaas
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 information
If a jaas realm has already been selected for the server, you can discover the user name by issuing the commandJBossFuse:karaf@root>
jaas:users
. - In Password, enter the password required for User Name to log into the server.
- Clickto save the server's configuration details.The server runtime will appear in Servers panel. For example:Expanding the server node exposes the server's JMX node:
Related topics
Define a New Server |
New Server Configuration |
Add and Remove |