File name: sample_osgi_blog.html
OSGi Blog 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.
Sample download
To use the sample, download
OSGi blog sample files from a product download site:
- Choose one of the following methods to download the blogSample.zip file
to a directory on your workstation: FTP or HTTP. You might create the /samples/blog directory
path on your workstation and download OSGi Blog sample files to that
directory path.
- From the displayed dialog, specify the target directory to which
to save the compressed file then click OK.
The
blogSample.zip file
contains sample files in the following directory structure:
/com.ibm.samples.websphere.osgi.blog.api
/com.ibm.samples.websphere.osgi.blog.persistence
/com.ibm.samples.websphere.osgi.blog.persistence_1.1.0
/com.ibm.samples.websphere.osgi.blog.web
/com.ibm.samples.websphere.osgi.blog_1.0.0
/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
- 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. This application shows how to write and package bundles
into an enterprise bundle archive (EBA) file.
- The sample application consists of five bundles, but can be run
with four bundles because the fifth bundle is an upgrade to the persistence
bundle. The sample application requires that the supplied com.ibm.samples.websphere.osgi.logging.api.jar and com.ibm.samples.websphere.osgi.logging.impl.jar bundles
are installed into the internal bundle repository.
- The bundles are divided into the following functional areas:
- com.ibm.samples.websphere.osgi.blog.persistence,
which contains code relating to the Java Persistence
API (JPA) layer, and also contains interfaces that are used by the
main application code to perform functional blog updates and queries.
- com.ibm.samples.websphere.osgi.blog_1.0.0, which
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, which contains
the static web content and backing Java code
for the web front end of the application.
- com.ibm.samples.websphere.osgi.blog.api, which
contains the API for the sample.
- com.ibm.samples.websphere.osgi.blog.persistence_1.1.0,
which contains an upgraded persistence bundle that also supplies a
comment service.
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,
and upgrade the persistence service that is provided by the sample.
|
