Sample OSGi applications
OSGi Applications support includes sample applications that demonstrate how to write and package bundles into an enterprise bundle archive (EBA) file.
Blog
Blabber
Colors
- 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).
- Updating deployed applications in a modular fashion.
- Extending running applications without changing the underlying application.
- OSGi_blogSample.zip
- OSGi_blabberSample.zip
- OSGi_colorsSample.zip
- sample_osgi_blog_readme
- sample_osgi_blabber_readme
- sample_osgi_colors_readme
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:
- com.ibm.ws.eba.example.blog.persistence.
This bundle contains JPA-related code, and the interfaces that enable the main application code to update and query blog entries.
- com.ibm.ws.eba.example.blog_1.0.0.
This bundle contains the main application logic code and interacts between the web front end and the back end persistence code layer.
- com.ibm.ws.eba.example.blog.web.
This bundle contains the static web content and backing Java code for the web front end of the application.
- com.ibm.ws.eba.example.blog.api.
This bundle contains the API for the sample.
- com.ibm.ws.eba.example.blog.persistence_1.1.0.
This bundle contains an optional upgraded persistence bundle that also supplies a comment service.
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:
- com.ibm.ws.eba.example.blabber.persistence.
This bundle contains code that relates to the Java Persistence API (JPA) layer and the interface for the main application code.
- com.ibm.ws.eba.example.blabber.
This bundle contains the main application code and the code for the web front end of the application.
For more information, see OSGi blabber sample application.
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.