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
- To open the OSGi Subsystem Project Wizard, click .
- In the Project name field, type the name of the OSGi subsystem
project.
- Accept the default location that is specified in Project location, or
specify the workspace location where you want to store the project files.
- Accept the default values in the Target runtime field.
- 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.
- If you do not want to add an OSGi subsystem project to a working set, clear Add
project... in Working sets.
- If you want to add the OSGi subsystem project to a working set, leave Add
project... selected, and then complete the following steps.
- Select Add project to working sets.
- 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.
- Select a working set from the Working sets list.
- Click Next.
- 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.
- To create more OSGi bundles, click New Bundle....
You can add the following resources in a subsystem project:
- OSGi bundles.
- OSGi fragments.
- 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.