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.

Draft comment:
LJW: Make sure that I haven’t changed your intended meaning here. Based on the original text, I’m not sure if the framework supports the deployment and management of web applications as bundles or if the componetization model supports those activities. (RRP - both are true) I assumed that you meant "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.

Draft comment:
LJW: Check my revision of the next sentence. The original text was: "With the OSGi asset types and lifecycle, you can also closely integrate the assets in a community with a connection to an OSGi bundle repository for use with IBM WebSphere Application Server." Is the point to integrate assets with a connection so that you can use the assets in WAS? Or is the point to connect assets to a repository so that you can use the assets in WAS? RRP - Looks good. I added "and other applications" because with the OBR URL, you can use prety much any application with the OBR. I’d like to discuss how we might better handle that fact in the ua - this is a kind of integration, actually. Stick a ref to it under "other integrations" under Integrating?
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 6

  4. Click Import Existing Library.
    The Import Library window opens.
  5. Select Select a built-in library, and then select OSGi from the list.
  6. Click OK.
  7. 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.
  8. 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 IBM 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