How to expose OSGi Bundle (3rd party Java libraries) via Shared Module to be used by Java Activities in Application Module in BW 6.x?

How to expose OSGi Bundle (3rd party Java libraries) via Shared Module to be used by Java Activities in Application Module in BW 6.x?

book

Article ID: KB0084664

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
Shared module will contain the 3rd party Java libraries which will be exposed as OSGi Java packages for all the application modules that depends on the shared module to use the functionality provided by 3rd party libraries.

Resolution

Use Shared Module to expose API's from 3rd party libraries.


1). Create a Shared Module with Java Configuration option selected or post creating of shared module. You can right click on the module and go to Configure->Convert To Java project.


2). Import the 3rd party libraries into the shared module.


3). Go to Navigator view from Menu item "Window->Show View->Navigator".


4). Open the Manifest.MF file and click the Runtime tab.


5). Add the packages you want to expose by clicking "Add" at Exported Packages section. Once the packages are added, it is expected that those packages are available to all the application modules which depend on the shared module.


6). Check if your JAR is listed under the Classpath section in the Runtime tab.


7). Include the dependency of this shared module on the required application module and you should see that the Java activities should have access to the shared module exported packages.

Issue/Introduction

How to expose OSGi Bundle (3rd party Java libraries) via Shared Module to be used by Java Activities in Application Module in BW 6.x?