Updating bundle versions in a deployed OSGi application
After you import your OSGi application as an asset, newer versions of the bundles or composite bundles that the asset uses might become available. You can update bundle and composite bundle versions, update the associated asset, then update the composition unit that includes the asset. When you save the changes to the composition unit, the associated business-level application is updated to use the new configuration.
Before you begin
About this task
When you first create an OSGi application, each bundle and composite bundle in the application is either directly contained in the EBA file or pulled in by reference. After you import your application as an asset, you can no longer change the direct contents of the asset. To update bundles and composite bundles that are specified in an asset, you add the updated versions to a repository then apply the updates to the asset.
The asset is not updated automatically when new bundle versions become available; it is up to you to decide if and when to update the asset. Updating an asset to use a new bundle version might require bundle downloads. You cannot update an asset until bundle downloads are complete from any previous update.
Similarly, the composition unit that contains the asset is not updated automatically, and you do not have to update the composition unit every time you update the asset. The composition unit also contains configuration information for running the bundles in a business-level application, and when you make bundle changes to the asset you might also have to make configuration changes to the composition unit.