+

Search Tips   |   Advanced Search

Composite bundles

A composite bundle groups shared bundles together into aggregates. It provides one or more packages at specific versions to an OSGi application. You can also extend a deployed application by adding one or more composite bundles to the composition unit for the application.

A composite bundle is packaged as a composite bundle archive (CBA) file. This file is a compressed archive file with a .cba file extension. If the composite bundle is part of an enterprise OSGi application, BA file can be directly contained within the enterprise bundle archive (EBA) file for the application, or pulled in by reference from the internal bundle repository or from an external repository that can process composite bundles. A composite bundle can directly contain bundles in its CBA file. It can also include by reference bundles that are hosted alongside BA file within the same EBA file, or bundles that are installed in the same bundle repository.

A composite bundle has the following differences from an enterprise OSGi application:

There are two main uses for a composite bundle:

An OSGi application can include a composite bundle just like any other bundle, either directly or by reference. To include the composite bundle by reference, or use the composite bundle to extend a deployed application, the composite bundle must be available in the internal bundle repository or in an external repository that can process composite bundles. If we install a composite bundle in a bundle repository, and the composite bundle includes bundles by reference, you must ensure that the referenced bundles are also available in the same repository. If we use the internal bundle repository, and the composite bundle directly contains bundles, the contained bundles are not listed separately and are only available as part of the composite bundle.

For users who are moving from a previous version:


Parent topic: OSGi bundles and bundle archives


Related concepts

  • Enterprise bundle archives
  • Application bundles, use bundles and provision bundles
  • Web application bundles
  • EJB bundles
  • Bundle and package versioning
  • Manifest files


    Related tasks

  • Develop a composite bundle
  • Modify the configuration of an OSGi composition unit that includes composite bundles using the editCompUnit command
  • Add an EBA asset that includes composite bundles using the addCompUnit command
  • Debugging bundles at run time
  • Extending a deployed OSGi application
  • Add or removing extensions for an OSGi composition unit
  • Add or removing extensions for an OSGi composition unit using wsadmin commands

  • Example: OSGi composite bundle manifest file


    Related information:

  • Add extensions [Collection]
  • Add extensions [Settings]
  • Extensions for this composition unit [Collection]
  • Extensions for this composition unit [Settings]