How to create a patch and patch my custom bundles in the Fabric containers?
My application is OSGi based and runs in Fuse Fabric. The version of Fuse is 6.2.1.
I have 4 physical nodes. On each node runs a Fuse Fabric Container that hosts the OSGi bundles of the application.
I want to know how to patch correctly specific OSGi bundle of my application.
For example: When I do a small change in my DAO layer, I want to apply a kind of patch to Fabric so that all 4 containers have the new version of the DAO bundle.
In the Fabric documentation for Fuse 6.2.1 is shown how to apply a patch (zip file), but doesn't tell how to create the patch zip file.
My questions are:
1. How to create a patch with my new version bundles?
2. Is the method described in the Fabric guide applicable for my situation? 19.7. Patching a Fabric Container with an Incremental Patch
Responses
The patching process described in the documentation is for the Fuse product itself. And these patches are provided by Red Hat.
In your case you are using Fabric profiles to tell Fuse which bundles it should download and install. So, you update bundles by updating your profiles. Profiles can be updated in a number of ways: through Fuse command-line client, through hawtio, with profile zips and profile-import, via Git and maybe others.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
