...
To simplify our deployment procedure, we will use the provisioning mechanism of Apache Servicemix Felix Karaf called 'Feature'. In a feature xml file, we will define the bundles that we will package and their dependencies. The bundles can be linked to a feature and features can be linked together. This file will be packaged in a jar.
...
Copy the files containing your properties file org.apache.camel.example.reportincident.datasource.cfg, ...
in the etc
directory of ServiceMix and customize them if required
Step 2 : Edit the file org.apache.felix.
...
karaf.features.cfg
To use the feature file created in the previous section, we must adapt the file org.apache.servicemixfelix.karaf.features.cfg
that you find in the etc
directory
...
Step 1 : launch application
It is time to launch the servicemix karaf server and to test if our application works well. If this is not yet done, download Apache Felix Karaf 1.0.0 server and install it. Launch the server by executing the command in the bin
folder:
...
Info |
---|
If this is the first time that Servicemix Karaf is started, then you will see that a new
|
...
Warning | ||||
---|---|---|---|---|
If errors happen during installation of the bundles, the list could be not completed. In this is the case, the feature provisioning system has stopped the installation. You have to check the log file of servicemix karaf and depending of the error reported, correction made, the installation can be relaunched in the menu 'feature' using the command :
If a problem occurs with a bundle, you can by example recompile the code, regenerate the jar and update the bundle using the command
where xxx corresponds to the bundle to be updated |
...