Deploying OSGi composite bundle projects

Before you begin

Important: Applicable to WebSphere® Application Server traditional
  1. Create a composite bundle project.
  2. Install WebSphere Application Server:
    1. Open the IBM® Installation Manager.
    2. Click Install. The Install Packages page opens.
    3. In the package list, select the WebSphere Application Server version that you want to install, then click Next.
    4. Read the license agreements. Accept the license agreements then click Next.
    5. Follow the instructions in the Installation Manager to install the WebSphere Application Server product.
    Important: If you use a different test environment, the steps to deploy your application differ from the steps provided in this topic.

About this task

Important: Updating a deployed CBA does not automatically republish the EBAs that reference the CBA.
  • If the publishing setting for your server is set to run the resources in your workspace, restart the application on the server in order for the EBA to recognize the changes in the CBA.
  • If the publishing setting for your server is set to run the resources on the server, remove the application from the server and then republish the application.

For more information, see Checking the update status of an OSGi composition unit.

To deploy your OSGi composite bundle to a server:

Procedure

  1. Add your composite bundle to a server instance.
  2. Run your application on the server.

Add your OSGi composite bundle to a server instance

Procedure

  1. In the Servers view (Window > Show View > Servers), right-click your server instance and select Add and Remove. The Add and Remove dialog opens.
  2. In the list of Available resources, select your OSGi composite bundle project and then click Add to add it to the list of configured resources.
  3. Click Finish.

Results

Servers view.

When you add your OSGi composite bundle project to the server, the server checks any package dependencies. If your composite bundle has package dependencies outside of your composite bundle project, the dependencies are resolved against any configured bundle repositories. The composite is started after all bundle dependencies are verified.

Run your application on the server

Procedure

If the server is not running, go to the Servers view (Window > Show View > Servers), right-click your server instance, and then select Start. Your OSGi application is started after the publish completes.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tdeploycomp.html