OSGi Applications support includes sample applications that demonstrate how to write and package bundles into an enterprise bundle archive (EBA) file.
The EBA file for each sample application is in the app_server_root/feature_packs/aries/installableApps directory.
The source code for each sample application is in the app_server_root/feature_packs/aries/samples directory. Details of how to install and run each sample application are in the Readme.txt file in the relevant directory in the samples directory.
The blabber sample application is a microblogging application, used to enable many different people to share brief comments. The application contains the following bundles:
This bundle contains code that relates to the Java Persistence API (JPA) layer and the interface for the main application code.
This bundle contains the main application code and the code for the web front end of the 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:
This bundle contains code that relates to the JPA layer and the interfaces for the main application code to perform functional blog updates and queries.
This bundle contains the main application logic code and interacts between the web front end and the back end persistence code layer.
This bundle contains the static web content and backing Java code for the web front end of the application.
This bundle contains the API for the sample.
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).