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.2.2. Hot Deployment
Types of configuration file Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
You can hot deploy the following types of configuration file:
- Spring XML file, deployable with the suffix,
.xml
. - Blueprint XML file, deployable with the suffix,
.xml
.
Hot deploy directory Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
If you have an existing Spring XML or blueprint XML configuration file, you can deploy the configuration file directly by copying it into the following hot deploy directory:
InstallDir/deploy
InstallDir/deploy
After deploying, the configuration file is activated immediately.
Hot undeploying an XML file Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
To undeploy a Spring XML file or a Blueprint XML file from the hot deploy directory, simply delete the XML file from the
InstallDir/deploy
directory while the Apache Karaf container is running.
Important
The hot undeploy mechanism does not work while the container is shut down. If you shut down the Karaf container, delete the XML file from
deploy/
, and then restart the Karaf container, the automatically generated bundle corresponding to the XML file will not be undeployed after you restart the container (you can, however, undeploy the bundle manually using the osgi:uninstall
console command).
Prerequisites Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
If you want to deploy Apache Camel routes in a blueprint configuration file, the
camel-blueprint
feature must be installed (which it is by default). If the camel-blueprint
feature has been disabled, however, you can re-install it by entering the following console command:
JBossFuse:karaf@root> features:install camel-blueprint
JBossFuse:karaf@root> features:install camel-blueprint
Default bundle version Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
When a Spring XML file or a Blueprint XML file is hot deployed, the XML file is automatically wrapped in an OSGi bundle and deployed as a bundle in the OSGi container. By default, the generated bundle has the version,
0.0.0
.
Customizing the bundle version Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
If you prefer to customize the bundle version, use the
manifest
element in the XML file. The manifest
element enables you to override any of the headers in the generated bundle's META-INF/MANIFEST.MF
file. In particular, you can use it to specify the bundle version.
Specifying the bundle version in a Spring XML file Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
To specify the bundle version in a hot-deployed Spring XML file, define a
manifest
element as follows:
The
manifest
element for Spring XML files belongs to the following schema namespace:
http://karaf.apache.org/xmlns/deployer/spring/v1.0.0
http://karaf.apache.org/xmlns/deployer/spring/v1.0.0
The contents of the
manifest
element are specified using the syntax of a Java properties file.
Specifying the bundle version in a Blueprint XML file Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
To specify the bundle version in a hot-deployed Blueprint XML file, define a
manifest
element as follows:
The
manifest
element for Blueprint XML files belongs to the following schema namespace:
http://karaf.apache.org/xmlns/deployer/blueprint/v1.0.0
http://karaf.apache.org/xmlns/deployer/blueprint/v1.0.0
The contents of the
manifest
element are specified using the syntax of a Java properties file.