Deploying bundles to JBoss Fuse

JBoss Fuse can hot deploy your OSGi bundles automatically when you drop the JAR files in the InstallDir/deploy directory. When you copy a JAR file in this directory, it will be automatically installed in the runtime and also started. Just the same, if you update or delete the JARs, and the changes are handled automatically.

So let's say you have packaged a bundle named demo-1.0-SNAPSHOT.jar, you can deploy this bundle by copying it to the Jboss Fuse InstallDir/deploy directory as follows:

$ cp demo-1.0-SNAPSHOT.jar $FUSE_HOME/deploy

Then check from the Karaf console that the Bundle is Active:


. . . . .

[ 321] [Active     ] [Created     ] [       ] [   80] demo (1.0.0.SNAPSHOT)

A better alternative, in case your project is composed of several bundles and needs other features to be installed, is to create a features.xml file which can be hot deployed as well. The following sample features.xml file shows how to create a feature named "fuse-custom-feature" which can be deployed on the Container, bundling JAR files and activating some features:

<features name="fuse-custom-feature"


  <feature name="fuse-demo-routes" version="${project.version}" resolver="(obr)">
    <feature version="${camel.version}">camel-blueprint</feature>
    <feature version="${camel.version}">camel-jaxb</feature>
    <feature version="${fabric8.version}">camel-amq</feature>




Simply deploy the feature file as follows:

FREE WildFly Application Server - JBoss - Quarkus - Drools Tutorials
Cookie Policy

Cookie Policy This website uses cookies that are necessary to its functioning and required to achieve the purposes illustrated in the privacy policy. By accepting this OR scrolling this page OR continuing to browse, you agree to our privacy policy.

© 2020 Your Company. All Rights Reserved. Designed By JoomShaper

Please publish modules in offcanvas position.