Fix Pack 8550

OSGi colors sample application

The colors sample application demonstrates two of the key dynamic abilities of OSGi Applications for WebSphere® Application server: how to administratively update deployed applications in a modular fashion, at the bundle level, and how to extend running applications, as your business requirements change, without changing the underlying application.

Before you begin

Extract the contents of the colorsSample.zip compressed file to your local drive.

About this task

The colors sample application consists of the following components:
  • com.ibm.samples.websphere.osgi.colors.eba, the core colors sample enterprise bundle archive.
  • com.ibm.samples.websphere.osgi.colors.blender_1.0.1.jar, an updated version of one of the bundles inside the colors sample application.
  • com.ibm.samples.websphere.osgi.colors.brightness.extension.cba, a composite bundle archive that can be used to extend the colors sample application.
The bundles in com.ibm.samples.websphere.osgi.colors.eba are divided into the following functional areas:
  • com.ibm.samples.websphere.osgi.colors.api.jar, which contains the API for the whole sample.
  • com.ibm.samples.websphere.osgi.colors.blender.jar, which blends the provided colors.
  • com.ibm.samples.websphere.osgi.colors.provider.red.jar, which provides "red".
  • com.ibm.samples.websphere.osgi.colors.provider.green.jar, which provides "green'.
  • com.ibm.samples.websphere.osgi.colors.provider.blue.jar, which provides "blue".
  • com.ibm.samples.websphere.osgi.colors.web.jar, which is the web front end to the color blending application.
The bundles in com.ibm.samples.websphere.osgi.colors.brightness.extension.cba are divided into the following functional areas:
  • com.ibm.samples.websphere.osgi.colors.brightness.blueprint.jar, which contains a BrightnessDelta bean that implements the BrightnessService in the colors API.
  • com.ibm.samples.websphere.osgi.colors.brightness.web.jar, which is the web front end to the colors brightness extension.

You can use scripts to install or uninstall com.ibm.samples.websphere.osgi.colors.eba, the core colors sample application. You can then use the com.ibm.samples.websphere.osgi.colors.blender_1.0.1.jar file to update the sample, and the com.ibm.samples.websphere.osgi.colors.brightness.extension.cba file to extend the sample. After running the uninstall script, the update JAR file or extension CBA file can then be removed from the internal bundle repository if they are no longer required.

Procedure


Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Monday, 21 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=sample_osgi_colors_readme
File name: sample_osgi_colors_readme.html