LibraryLink ToToggle FramesPrintFeedback

Using the features Subshell Commands

You can use the commands in the features subshell of the FUSE ESB console to interact with the provisioning component. The features subshell provides commands to provision entire applications, add XML feature descriptors to the container, add and remove features, and point to feature repositories. See the Features Console Commands in Console Reference Guide for a detailed listing of the commands.

You can use some of the features commands to manage the list of descriptors known by FUSE ESB Kernel. These commands use URLs to point to feature descriptors. These URLs can use any protocol supported by the FUSE ESB Kernel, including HTTP, file, and mvn.

Use listUrl to display the repository URLs currently associated with the features service and list the features descriptor URLs:

smx@root features> listUrl

The output of this command lists the Maven URL handlers. A handler makes the FUSE ESB Kernel check first on the Maven local repository and, if the descriptor is missing, download it from a remote Maven repository.

The remote Maven repositories are configured in the <install-dir>\etc\org.ops4j.pax.url.mvn.cfg file.

Use addUrl to add a list of repository URLs to the features service:

The URL syntax is:

mvn:<group id>/artifact id/<version>/xml/features

Use removeUrl to remove a list of repository URLs from the features service.

You can use the refreshUrl command when developing features descriptors to reload the repositories to obtain a fresh list of features.

FUSE ESB Kernel maintains a persistent list of these repositories so that if you add a URL and restart the FUSE ESB Kernel, the features are still available. When changing the descriptor, you can reload it in the FUSE ESB Kernel without having to restart the FUSE ESB Kernel or to remove and then add the URL again.

You can use the list command to view a list of all the features as defined by the descriptors pointed to by the features' URLs.

smx@root features> list 

To make other components, for example, Apache Camel components, available in the features list, add a features URL where the provisioning component can retrieve the additional components.

Use install to install a feature:

smx@root features> install examples-camel-osgi

Use uninstall to uninstall a feature:

smx@root features> uninstall examples-camel-osgi

The following example demonstrates how to use two features commands: