Sample OSGi applications

OSGi Applications support includes sample applications that demonstrate how to write and package bundles into an enterprise bundle archive (EBA) file.

The following OSGi applications are provided:
  • "Blog"
  • "Blabber"
  • Fix Pack 8550 "Colors"
These applications demonstrate the following OSGi Applications features:
  • Using Blueprint management.
  • Using bean injection.
  • Using services from the OSGi service registry.
  • Publishing services to the OSGi service registry.
  • Using the Java™ Persistence API (JPA).
  • Fix Pack 8550 Updating deployed applications in a modular fashion.
  • Fix Pack 8550 Extending running applications without changing the underlying application.
The samples are provided in the following compressed archive files:
  • OSGi_blogSample.zip
  • OSGi_blabberSample.zip
  • Fix Pack 8550 OSGi_colorsSample.zip
These files can be downloaded from the Samples download page. The EBA file for each sample application is in the installableApps directory of the sample compressed file, and the source code is provided in other subdirectories of the sample compressed file.
For information about how to install and run each sample application, see the following readme files:
  • sample_osgi_blog_readme
  • sample_osgi_blabber_readme
  • Fix Pack 8550 sample_osgi_colors_readme
These files are available in the root directory of the associated sample compressed file. They are also available in the information center in the following topics

Blog sample application

The blog sample application is a traditional blogging application, used for publishing essay-length articles and allowing readers to comment on them. The application contains the following bundles:

To run the blog sample application, you can use all the bundles that are listed, or all the bundles except the upgraded persistence bundle (the last in the list).

For more information, see OSGi blog sample application.

Blabber sample application

The blabber sample application is a microblogging application, used to enable many different people to share brief comments. The application contains the following bundles:

For more information, see OSGi blabber sample application.

Fix Pack 8550

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.

For more information, see OSGi colors sample application.


Icon that indicates the type of topic Reference 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=ra_samples
File name: ra_samples.html