17 WebLogic Server OSGi Frameworks

This chapter describes how to monitor and configure OSGi frameworks created in this domain.

OSGi is a Java modularity system developed and maintained by the OSGi Alliance, of which Oracle is a member. For general information on OSGi, see "Understanding OSGi" in Developing Applications for Oracle WebLogic Server.

An OSGi framework provides an OSGi runtime environment to support applications that make use of OSGi features, such as packaging, lifecycle management, and an active registry. For more information, see "Developing OSGi Bundles for WebLogic Server Applications" in Developing Applications for Oracle WebLogic Server.

Note:

If you are logged into a domain partition, navigate from the Domain Partition menu.

This chapter includes the following sections:

Monitor OSGi frameworks

To monitor all OSGi frameworks configured in the current domain:

  1. From the WebLogic Domain menu, select Other Services, then select OSGi Frameworks.

    The OSGi Frameworks table displays information about the OSGi frameworks that have been configured in the current domain, such as:

    • Name

    • Factory Implementation Class

    • Register Global Work Managers

    • Register Global Data Sources

    • Targets

    For more information about these fields, see Configuration Options.

    Optionally, select View to access the following table options:

    • Columns: add or remove the columns displayed in the table

    • Detach: detach the table (viewing option)

    • Sort: sort the columns in ascending or descending order

    • Reorder: change the order of the columns displayed

    • Query by Example

  2. In the table, select the name of the OSGi framework for which you want to view configuration information.

Monitor server OSGi frameworks

To monitor all OSGi frameworks configured in a specific server instance:

  1. From the WebLogic Domain menu, select Environment, then select Servers.

    The Servers table displays information about the Administration Server and any Managed Servers that have been configured in the current domain.

  2. In the Servers table, select the name of the server instance for which you want to monitor OSGi frameworks.
  3. From the WebLogic Server menu, select Other Services, then select OSGi Frameworks.

    The OSGi Frameworks table displays information about the OSGi frameworks that have been configured in the current server instance, such as:

    • Name

    • Factory Implementation Class

    • Register Global Work Managers

    • Register Global Data Sources

    • Targets

    For more information about these fields, see Configuration Options.

    Optionally, select View to access the following table options:

    • Columns: add or remove the columns displayed in the table

    • Detach: detach the table (viewing option)

    • Sort: sort the columns in ascending or descending order

    • Reorder: change the order of the columns displayed

    • Query by Example

  4. In the table, select the name of the OSGi framework for which you want to view configuration information.

Monitor cluster OSGi frameworks

To monitor all OSGi frameworks configured in a specific cluster:

  1. From the WebLogic Domain menu, select Environment, then select Clusters.

    The Clusters table displays information about the clusters that have been configured in the current domain.

  2. In the Clusters table, select the name of the cluster for which you want to monitor OSGi frameworks.
  3. From the WebLogic Cluster menu, select Other Services, then select OSGi Frameworks.

    The OSGi Frameworks table displays information about the OSGi frameworks that have been configured in the current cluster, such as:

    • Name

    • Factory Implementation Class

    • Register Global Work Managers

    • Register Global Data Sources

    • Targets

    For more information about these fields, see Configuration Options.

    Optionally, select View to access the following table options:

    • Columns: add or remove the columns displayed in the table

    • Detach: detach the table (viewing option)

    • Sort: sort the columns in ascending or descending order

    • Reorder: change the order of the columns displayed

    • Query by Example

  4. In the table, select the name of the OSGi framework for which you want to view configuration information.

Configure OSGi frameworks

This section describes how to configure OSGi frameworks created in the current domain. This section includes the following tasks:

Configure an OSGi framework

To modify the configuration of an OSGi framework in the current domain:

  1. From the WebLogic Domain menu, select Other Services, then select OSGi Frameworks.

    The OSGi Frameworks table displays information about each OSGi framework that has been configured in the current WebLogic Server domain.

  2. In the OSGi Frameworks table, select the name of the OSGi framework you want to configure.
  3. From the Configuration page, you can configure general settings of this OSGi framework, such as:
    • Factory Implementation Class

    • Register Global Work Managers

    • Register Global Data Sources

    • Boot Delegation

    • System Packages Extra

    • Deploy Installation Bundles

    • Init Properties

    For more information about these fields, see Configuration Options.

  4. Click Save.

Target OSGi frameworks

You can assign server instances or clusters for an OSGi framework. The OSGi framework is deployed on the server instances or clusters that you select.

To target OSGi frameworks:

  1. From the WebLogic Domain menu, select Other Services, then select OSGi Frameworks.

    The OSGi Frameworks table displays information about each OSGi framework that has been configured in the current WebLogic Server domain.

  2. In the OSGi Frameworks table, select the name of the OSGi framework you want to assign to a server instance or cluster.
  3. Select Targets.
  4. From the Targets page:
    • Select the checkbox next to the server instance or cluster to which you want to assign the OSGi framework.

    • To remove an OSGi framework from a server instance or cluster, deselect the checkbox next to the server instance or cluster from which you want to remove the OSGi framework.

    For more information, see Configuration Options.

  5. Click Save.

Create OSGi framework notes

To create notes for OSGi framework configuration:

  1. From the WebLogic Domain menu, select Other Services, then select OSGi Frameworks.
  2. In the OSGi Frameworks table, select the name of the OSGi framework for which you want to create notes.
  3. Select Notes.
  4. On the Notes page, enter your notes.
  5. Click Save.

For more information, see Configuration Options.