Enabling the OSGi model library

To manage and deploy components and applications as Open Services Gateway initiative (OSGi) bundles, you can enable the OSGi model library in IBM® Rational® Asset Manager. The OSGi model library is collection of asset types, categories, and relationships that can be used in OSGi bundles.

Before you begin

To enable the OSGi model library, you must be a repository administrator.

About this task

IBM WebSphere® Application Server versions 7 and 8 use a componentization model that is based on the OSGi framework. The framework supports the deployment and management of web applications as a set of versioned OSGi bundles. You can use the OSGi model library with WebSphere Application Server to search for and provision approved bundles.

You can activate a preconfigured OSGi lifecycle that supports the OSGi framework for assets. With the OSGi asset types and lifecycle, you can connect the assets in a community to an OSGi bundle repository for use with WebSphere Application Server or other applications. For more information, see Creating the OSGi lifecycle.

Procedure

  1. On the Rational Asset Manager web client home page, log on with an account that has master administrative permissions for the repository.
  2. Click Administration.
  3. On the sidebar, click Libraries.
    Important: If the OSGi model library is already enabled on the server, you cannot import the library again. Continue to the next step.

    If the OSGi model library was imported but not enabled, in the list of libraries, click the version number of the OSGi model library. Then, continue to step 5

  4. In the Import Sample Library section, click Import OSGi Model Library.
  5. Confirm that the information in the OSGi library does not conflict with assets or metadata that are in the repository or that are controlled by other libraries on the page for the OSGi library, in the Library Actions sidebar, then, click Enable. The assets, asset types, categories, asset attributes, and communities for the OSGi library are enabled on your repository.
  6. Click Administration to return to the list of communities in the repository.

Results

After you activate the library, the following OSGi asset types, categories, and relationship types are available in your repository:

Asset types:
  • OSGiBundle
  • OSGiPackage
  • OSGiService
  • OSGi Mapping Configuration, which maps Rational Asset Manager to an OSGi bundle repository and configures that connection
Categories
  • Kind, which you can use to categorize and organize Bundle asset types

Relationship types

These relationships provide common ways to connect the OSGi asset types in the repository:
  • Exports / Exported By
  • Provides / Provided By

Feedback