[8.5.5.7 or later]

Creating an OSGi subsystem project

You can create an OSGi subsystem project by using the OSGi Subsystem Project Wizard and optionally add the project to a working set. You can specify the type of OSGi subsystem, which affects its share policy.

About this task

Important: Applicable to Liberty, Liberty Core

Procedure

  1. To open the OSGi Subsystem Project Wizard, click File > New > Other > OSGi > OSGi Subsystem Project.
  2. In the Project name field, type the name of the OSGi subsystem project.
  3. Accept the default location that is specified in Project location, or specify the workspace location where you want to store the project files.
  4. Accept the default values in the Target runtime field.
  5. In the Subsystem type field, select the type of OSGi subsystem that you want to create.

    You can select one of the following options:

    • Subsystem Feature: This selection creates a non-scoped subsystem. This type of subsystem imports and exports all requirements and capabilities implicitly.
    • Subsystem Composite: This selection creates a scoped subsystem. By default, it does not share anything with its parent. Therefore, capabilities such as packages and services must be imported into or exported out of the composite explicitly.
    • Subsystem Application: This selection creates an application that does not export any capabilities. Imported capabilities are derived from the application subsystem content.
  6. If you do not want to add an OSGi subsystem project to a working set, clear Add project... in Working sets.
  7. If you want to add the OSGi subsystem project to a working set, leave Add project... selected, and then complete the following steps.
    1. Select Add project to working sets.
    2. If there are no working sets in the Working sets list, or if you want to use a different working set, click Select to add working sets to the Working sets list.
    3. Select a working set from the Working sets list.
  8. Click Next.
  9. On the OSGi Resources Selection page, select the resources that you want to add to the subsystem project.
    Important: By default, the OSGi Resources Selection page displays only workspace bundles. To add target platform bundles, select Show platform bundles and select the bundles that you want to add.
  10. To create more OSGi bundles, click New Bundle....
    You can add the following resources in a subsystem project:
    • OSGi bundles.
    • OSGi fragments.
  11. Click Finish.

What to do next

You can package your OSGi subsystem project in an ESA file and then deploy it. For more information about packaging your project in an ESA file, see: Packaging an OSGi subsystem project. For more information about deploying your project, see: Deploying an ESA file that contains an OSGi subsystem project.

Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tcreateosgisubsystem.html