Deploying OSGi application projects

Before you begin

  1. Create an OSGi application.
  2. Install WebSphere® Application Server.
    Tip: You can deploy OSGi applications on WebSphere Application Server Version 7, Version 8.0, and Version 8.5.
    Learn more about installing WebSphere Application Server Version 7.0:
    1. Open the IBM® Installation Manager.
    2. Click Install. The Install Packages page opens.
    3. In the package list, select IBM WebSphere Application Server Version 7.0 Test Environment, 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 WebSphere Application Server Version 7.0.
    6. In the Features list, ensure that you select OSGi Applications under IBM WebSphere Application Server Version 7.0 Feature Pack for OSGi Applications and Java Persistence API 2.0.
    Learn more about installing WebSphere Application Server Version 8.0:
    1. Open the IBM Installation Manager.
    2. Click Install. The Install Packages page opens.
    3. In the package list, select Application Server Version 8.0.0.0, 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 WebSphere Application Server Version 8.0.
    Learn more about installing WebSphere Application Server Version 8.5:
    1. Open the IBM Installation Manager.
    2. Click Install. The Install Packages page opens.
    3. In the package list, select Application Server Version 8.5.0.0, 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 WebSphere Application Server Version 8.5.
    Important: If you use a different test environment, the steps to deploy your application differ from the steps that are provided in this topic.

About this task

To deploy your OSGi application to a server:
  1. Add your OSGi application to a server instance.
  2. Run your application on the server.
Restriction: If you updated the container path of the target definition on the Server Preferences the Target Platform Preference is overridden. For more information, see Bug 300861.

Adding your OSGi application 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 application 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 application project to the server, the server checks any package dependencies. If your OSGi application has package dependencies outside of your application project, the dependencies are resolved against any configured bundle repositories. The application is started after all bundle dependencies are verified.

Running your application on the server

Procedure

In 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: tdeployosgiapp.html