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.0 or Version 8.5
Important: These samples were tested with WebSphere Application Server
Version 8.0 and Version 8.5.
Sample download
To use the sample, download
OSGi blabber files from a product download site:
- Choose one of the following methods to download the blabberSample.zip file
to a directory on your workstation: FTP or HTTP. You might create the /samples/blabber directory
path on your workstation and download OSGi Blabber sample files to
that directory path.
- From the displayed dialog, specify the target directory to which
to save the compressed file and click OK.
The
blabberSample.zip file
contains sample files in the following directory structure:
/com.ibm.samples.websphere.osgi.blabber
/com.ibm.samples.websphere.osgi.blabber.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
- Blabber sample application
- The blabber sample application is a microblogging application
for enabling many different people to share brief comments. This application
shows how to write and package bundles into an enterprise bundle archive
(EBA) file.
- The sample application consists of two bundles, divided into the
following functional areas:
- com.ibm.samples.websphere.osgi.blabber.persistence,
which contains code relating to the Java Persistence
API (JPA) layer, and also contains the interface that is used by the
main application code.
- com.ibm.samples.websphere.osgi.blabber, which
contains the main application logic code, and interacts between the
web front end and the back end persistence code layer.
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.