In this tutorial you will:
start up Red Hat JBoss Fuse 6.x Server
deploy your project into Red Hat JBoss Fuse 6.x Server
check whether your project was successfully built and deployed
uninstall your deployed bundle
To complete this tutorial you will need
access to a Red Hat JBoss Fuse instance
the simple-route project you updated in To Add a Content-Based Router
To start up the server:
In Fuse Integration perspective, click the Servers tab in the lower, right pane to open the Servers view.
Click the link No servers are available. Click this link to create a new server... to open the Define a New Server page.
Expand the JBoss Fuse
node to expose the available server
options as shown in Figure 18.
Click JBoss Fuse 6.1 Server
.
Accept the defaults for Server's host name
(localhost
) and Server name
(JBoss Fuse 6.1 Server at localhost
), and then
click to open the JBoss Fuse
Runtime page.
In Installation directory, enter the path where the JBoss Fuse 6.1 installation is located, or click the to search for it, and then click to open the New Server> JBoss Fuse server configuration details page.
Accept the defaults for Host Name
(0.0.0.0
) and Port Number
(8101
).
In User name, enter the name used to log into the server.
This is a user name stored in Red Hat JBoss Fuse's
installDir
/etc/users.properties
file.
If one has not been set, you can either add one to that file using the format
user=password,role
(for example,
admin=admin,admin
), or you can set one using the karaf
jaas
command set:
jaas:realms
—to list the realms
jaas:manage --index 1
—to edit the first
(server) realm
jaas:useradd <username>
<password>
—to add a user and associated
password
jaas:roleadd <username> admin
—to
specify the new user's role
jaas: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 command
JBossFuse:karaf@root>jaas:users
.
In Password, enter the password required for User name to log into the server.
This is the password set either in Red Hat JBoss Fuse's
installDir
/etc/users.properties
file or by the karaf jaas
commands.
Click
, and then click .jboss-fuse-6.1.0.redhat-xxx [stopped]
appears in
Servers view.
In Servers view, right-click
jboss-fuse-6.1.0.redhat-xxx
to open the context menu, and then
click .
![]() | Important |
---|---|
If the warning that the remote host identification has changed appears, click the Red Hat JBoss Fuse Tooling is running! Otherwise click and contact your system administrator. to delete the old key and insert the new key, only if the JBoss Fuse 6.1 server runtime is installed on the same machine where |
Wait a few seconds for JBoss Fuse 6.1 Server to start up. When it does,
JBoss Fuse [xxx]
is added to the Fuse JMX
Navigator tree under the Local Processes node, but you need to expand the Local
Processes node to see it.
The JBoss Fuse console also starts up in Shell view, as shown in Figure 20:
In Fuse JMX Navigator, right-click JBoss Fuse
[xxx]
to open the context menu, and then click
.
In Fuse JMX Navigator, expand the JBoss Fuse
[xxx]
node to see its tree structure.
Now you're ready to deploy your project.
To deploy a camel project to JBoss Fuse:
From Project Explorer, drag the simple-route
root project over to Fuse JMX Navigator and drop it on
JBoss Fuse [xxx]
.
![]() | Note |
---|---|
The tool provides an alternative to the drag and drop method of deployment. For details, see Deploying Projects to a Container in the Red Hat JBoss Fuse Tooling: JBoss Fuse Tooling User Guide. |
Console view chronicles the process as the tooling builds
the simple-route
project, runs the tests, and then installs the
project as a bundle inside JBoss Fuse [xxx]
.
In Fuse JMX Navigator, right-click JBoss Fuse
[xxx]
to open the context menu, and then click
.
![]() | Note |
---|---|
You may have to repeat the Fuse JMX Navigator under > as
In the mean time, you can verify whether your project's bundle was
installed by clicking the |
Once your project appears in Fuse JMX Navigator, you can start tracing on it, as described in To Trace a Message Through a Route.
To uninstall your project from JBoss Fuse 6.1 server:
Switch to the JBoss Fuse console in Shell view.
At the JBoss Fuse console command line, type uninstall
<bundleIdentifier>