Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
langxml
<features>
  <feature name="nmr">
    <bundle>mvn:org.apache.servicemix.document/org.apache.servicemix.document/1.0.0-m2</bundle>
    <bundle>mvn:org.apache.servicemix.nmr/org.apache.servicemix.nmr.api/1.0.0-SNAPSHOT<m2</bundle>
    <bundle>mvn:org.apache.servicemix.nmr/org.apache.servicemix.nmr.core/1.0.0-SNAPSHOT<m2</bundle>
    <bundle>mvn:org.apache.servicemix.nmr/org.apache.servicemix.nmr.osgi/1.0.0-SNAPSHOT<m2</bundle>
    <bundle>mvn:org.apache.servicemix.nmr/org.apache.servicemix.nmr.spring/1.0.0-SNAPSHOT<m2</bundle>
    <bundle>mvn:org.apache.servicemix.nmr/org.apache.servicemix.nmr.commands/1.0.0-SNAPSHOT<m2</bundle>
    <bundle>mvn:org.apache.servicemix.nmr/org.apache.servicemix.nmr.management/1.0.0-SNAPSHOT<m2</bundle>
  </feature>
</features>

...

Code Block
langxml
<bundle>http://repo1.maven.org/maven2/org/apache/servicemix/jbinmr/org.apache.servicemix.jbinmr.api/1.0.0-m1m2/org.apache.servicemix.jbinmr.api-1.0.0-m1m2.jar</bundle>

Doing this will make sure the above bundle is installed while installing the feature.

...

Code Block
<bundle>mvn:org.apache.servicemix.jbinmr/org.apache.servicemix.jbinmr.api/1.0.0-m1<m2</bundle>

In addition to being less verbose, the maven url handlers can also resolve snapshots and can use a local copy of the jar if one is available in your maven local repository.

...

The effect of such a dependency is to automatically install the required jbi nmr feature when the nmr jbi feature will be installed.

Configurations

TODO

Commands

...

Repository management

The following commands can be used to manage the list of descriptors known by ServiceMix Kernel. They use URLs pointing to features descriptors. These URLs can use any protocol known to the ServiceMix Kernel, the most common ones being http, file and mvn.

Code Block

features addUrl      Add a list of repository URLs to the features service
features removeUrl   Remove a list of repository URLs from the features service
features listUrl     Display the repository URLs currently associated with the features service.
features refreshUrl  Reload the repositories to obtain a fresh list of features

ServiceMix Kernel maintains a persistent list of these repositories so that if you add one URL and restart the Kernel, the features will still be available.

The refreshUrl command is mostly used when developing features descriptors: when changing the descriptor, it can be handy to reload it in the Kernel without having to restart it or to remove then add again this URL.

Features management

Code Block

features install
features uninstall
features list

Examples

Code Block
features addUrl httpmvn://svnorg.apache.org/repos/asf/servicemix/smx4/obr-repo/features-nmr-1.0-m1.xmlservicemix.nmr/apache-servicemix-nmr/1.0.0-m2/xml/features
features install nmr

Service configuration

Wiki Markup
A simple configuration file located in {{\[kernel\]/etc/org.apache.servicemix.features.cfg}} can be modified to customize the behavior when starting the Kernel for the first time.
This configuration file contains two properties:

  • featuresBoot: a comma separated list of features to install at startup
  • featuresRepositories: a comma separated list of feature repositories to load at startup

This configuration file is of interest if you plan to distribute a ServiceMix Kernel distribution which includes pre-installed features. Such a process is detailed in the 8. Building custom distributions section.

#top

Wiki Markup
{scrollbar}