此内容没有您所选择的语言版本。
2.2. Hot Deployment
Types of configuration file 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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.
Prerequisites 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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.