OSGi Calculator

The sample demonstrates how to use Maven in OSGi bundles. The OSGi application consists of an OSGi web bundle that contains a servlet that access services provided by other bundle projects. The bundle projects that provide the services (addition, multiplication) are Maven projects that are converted to OSGi. The application runs on WebSphere® Application Server. This sample is an introduction to using OSGi development tools.

To use this sample, you must have WebSphere Application Server version 8.0 or later installed and configured. To verify that a server runtime environment is available, click Window > Preferences, expand Server, and then click Runtime Environments. You can use this pane to add, remove, or edit installed server runtime definitions. You can also download and install support for a new server.
To deploy the sample:
  1. Import the sample.
  2. In the Enterprise Explorer view, expand org.sample.calculator.web > org.sample.calculator.web > Servlets.
  3. Right-click org.sample.calculator.web.CalculatorServlet and select Run on Server.
  4. Select WebSphere Application Server version 8.0 or later.
Icon that indicates the type of topic Sample topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: calculatorExample.html