Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Chapter 2. Installing Red Hat JBoss Fuse as a Service
Abstract
You can install JBoss Fuse as a system service. To do this, generate a service wrapper, then configure the wrapper for your system, and install and start the service.
2.1. Generating the Service Wrapper Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Overview Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The Red Hat JBoss Fuse console
wrapper feature generates a wrapper around the JBoss Fuse runtime instance. You use the wrapper to install the message broker as a system service. The wrapper feature is not installed by default in the console, so before you can generate the service wrapper you must install the wrapper feature.
After the feature is installed the console gains a wrapper:install command. Running this command generates a generic service wrapper in the JBoss Fuse installation.
Generating the service wrapper Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
- Start JBoss Fuse in console mode with the fuse command.
- Enter
features:install wrapper.The features:install command locates the required libraries to provision the wrapper feature and deploys it into the runtime instance. - Generate the wrapper with the wrapper:install command in the following format:
wrapper:install -n <serviceName> -d <displayName> -D <<description>
wrapper:install -n <serviceName> -d <displayName> -D <<description>Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Table 2.1, “Wrapper Install Options” table describes the wrapper:install options.Expand Table 2.1. Wrapper Install Options Option Default Description -sAUTO_START(Windows only) Specifies the mode in which the service is installed. Valid values are AUTO_STARTorDEMAND_START.-nkarafSpecifies the service name that will be used when installing the service. -dSpecifies the display name of the service. -DSpecifies the description of the service. -i --includeSpecifies an include statement for the JSW wrapper configuration. To specify multiple include statement, enter this option multiple times. -e --envSpecifies environment variable and values. To set multiple environment variable and values, enter this option multiple times.
Results Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The wrapper:install command generates the following wrapper files:
bin\ServiceName-wrapper[.exe]—the executable file for the wrapper.bin\ServiceName-service[.bat]—the script used to install and remove the service.etc\ServiceName-wrapper.conf—the wrapper configuration file.
The command also creates the following libraries that the service wrapper requires:
lib\libwrapper.solib\karaf-wrapper.jarlib\karaf-wrapper-main.jar