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.Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 12. Deploying an OSGi Bundle
Abstract
Apache Karaf provides two different approaches for deploying a single OSGi bundle: hot deployment or manual deployment. If you need to deploy a collection of related bundles, on the other hand, it is recommended that you deploy them together as a feature, rather than singly (see Chapter 13, Deploying Features).
12.1. Hot Deployment Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
Hot deploy directory Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
Red Hat JBoss Fuse monitors JAR files in the
InstallDir/deploy
directory and hot deploys everything in this directory. Each time a JAR file is copied to this directory, it is installed in the runtime and also started. You can subsequently update or delete the JARs, and the changes are handled automatically.
For example, if you have just built the bundle, ProjectDir
/target/foo-1.0-SNAPSHOT.jar
, you can deploy this bundle by copying it to the InstallDir/deploy
directory as follows (assuming you are working on a UNIX platform):
% cp ProjectDir/target/foo-1.0-SNAPSHOT.jar InstallDir/deploy
% cp ProjectDir/target/foo-1.0-SNAPSHOT.jar InstallDir/deploy