OSGi Colors sample

The OSGi applications programming model helps you develop and deploy modular applications that use both Java EE and OSGi technologies. You can design and build applications and suites of applications from coherent, multiversion, reusable OSGi modules that are accessed only through well defined interfaces. This reduces complexity, and provides the greatest flexibility to maintain and evolve an application after its first release.

Prerequisites for use

  • WebSphere® Application Server Version 8.5
Important: These samples were tested with WebSphere Application Server Version 8.5.

Sample download

To use the sample, download OSGi colors files from a product download site:

  1. Choose one of the following methods to download the colorsSample.zip file to a directory on your workstation: FTP or HTTP. You might create the /samples/colors directory path on your workstation and download OSGi Colors sample files to that directory path.
  2. From the displayed dialog, specify the target directory to which to save the compressed file and click OK.
    The colorsSample.zip file contains sample files in the following directory structure:
    /com.ibm.samples.websphere.osgi.colors
    /com.ibm.samples.websphere.osgi.colors.persistence
    /com.ibm.samples.websphere.osgi.logging.api
    /com.ibm.samples.websphere.osgi.logging.impl
    /images
    /installableApps
    /META-INF
    /prereqs
    /scripts
    /style
    build.xml
    readme.html
    notices.txt
    Attention: The readme.html file contains information for installing and running the sample.

Sample description

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.
The sample application consists of the following components, divided into the following functional areas:
  • 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 you can use to extend the colors sample application.

You can use scripts to perform a complete install, or use scripts to perform just the initial configuration of the application then use the administrative console to install the application into the application server. You can also use, modify and remove the sample.

Concept topic    

Terms and conditions for product documentation | Feedback

Last updated: January 29, 2018 04:57 AM GMT-06:00
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=sample_osgi_colors
File name: sample_osgi_colors.html