By default, the Fuse ESB runtime scans a directory for OSGi bundles and JBI artifacts to automatically load. You can change the location of this folder and the interval at which the folder is scanned.
By default, the Fuse ESB runtime looks for a folder named deploy
in
the same folder from which the runtime was launched. For example if you launched the runtime
from the root folder of your Fuse ESB installation, the hot deployment folder would be
.InstallDir
/deploy
The default scan interval is 1000 milliseconds.
You can specify the folder the Fuse ESB runtime monitors by setting the
felix.fileinstall.dir property in the
file. The value is the absolute path of the folder to monitor. If you set the value to
InstallDir
/etc/org.apache.felix.fileinstall-deploy.cfg/home/joe/deploy
, the runtime will monitor a folder in Joe's home
directory.
By default the Fuse ESB runtime scans a hot deployment folder every 1000 milliseconds.
To change the interval between scans of the hot deployment folders, you can
change the felix.fileinstall.poll property in the
file. The value is specified in milliseconds.InstallDir
/etc/org.apache.felix.fileinstall-deploy.cfg
Example 3.2 shows a configuration fragment that sets
/home/smx/jbideploy
as the hot deployment folder and sets the scan
interval to half a second.
Example 3.2. Configuring the Hot Deployment Folders
# # FileMonitor properties # felix.fileinstall.dir = ${karaf.base}/deploy felix.fileinstall.tmpdir = ${karaf.base}/data/generated-bundles felix.fileinstall.poll = 1000