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 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.
, expand To deploy the sample:
- Import the sample.
- In the Enterprise Explorer view, expand .
- Right-click org.sample.calculator.web.CalculatorServlet and select Run on Server.
- Select WebSphere Application Server version 8.0 or later.