Web Object Cache
Sample - Admin Module
Introduction
to Web Object Cache
Overview of the Sample
Application
Application Usecase Diagram
User Notes with Screen
Shots
Installation and
Configuration
Oracle Web Object Cache is an
application level caching mechanism. It is available as a part of Oracle9iAS
9.0.2 Container
for J2EE (OC4J). Web
Object Cache works at the Java level and is closely integrated with the
HTTP environment of JSP
and servlet applications.
It is not a substitute for Oracle Web Cache but complements it. It is useful
in Intranet scenarios
and cases where complexity
of post processing is high. Like applying XML stylesheet dynamically on
a cached object or
sharing of cached data using
other protocols. Three types of objects can be cached using Web Object
Cache, they are:
-
Simple Object- for general character-based
caching
-
XML Object- for caching XML objects
-
Java Object - for caching Java
serializable objects
For documentation on Oracle Web
Object Cache, refer to OracleJSP Support for JavaServer Pages Developer's
Guide
and Reference available
at /docs/index.html
under Oracle9iAS Containers for J2EE (OC4J)
This sample aims at demonstrating
the features of Web Object Cache through "Admin Module"
for an e-Shop "Ultimate Computers
Stores". This Admin Module is for the maintenance of this e-store. After
the Administrator
logs into this site he/she
can access the following options:
- Tracking of the products
in various status (like under development, orderable, obsolete,
planned), the Administrator can view the list of products based
on the selected Product Status from the list in the menu. All
the products are being cached in
an XML object, an XSL is applied dynamically based on the product
status chosen, demonstrating complex post processing feature.
|
- Tracking of orders
in various status (like planned, packing, ready for shipment etc).,
the Administrator can view the list of orders, this order list
is cached using Simple object in Web Object cache. Through this
application the Administrator can change the order status to a
higher one as the order progresses (Please note that the list
all the order status is documented in the "Contents of Archive
File" section in the Installation instructions
file. The change in order status triggers the following events:
-
When the order status is
changed to "ready for shipment" status, then an acknowledgment email is
send to the customer about the order delivery details.
-
When order status is changed
list of orders being cached for viewing orders gets invalidated and is
cached again.
|
-
Best Buy is a concept where a
set of products is given at a discounted rate. For eg. A monitor, CPU,
mouse, all three products as a set could be given at a bargained rate.
In this e-Store the Administrator can create "Best Buys" specifying the
products included in a Best Buy with the discount offered. Administrator
has the facility to view Best Buys, this is done by caching Java Objects.
The option for deleting and disabling Best Buys is also made available
to the Administrator. The Best Buys list gets invalidated and recached
when a best buy is deleted or disabled.
|
Fig1: Use Case Diagram for the Admin Module
After logging into the application successfully a menu is displayed
to the Administrator, as shown in fig 1.1 .
The user can choose any of the options from the menu.
Figure 1.1- Menu
for the application
When the user clicks on "View Products"
button after selecting the product status from the list, the list of products
for that selected product status is dispalyed
as shown in fig. 1.2
Figure 1.2 - List
of Products based on Product Status
To view the list of orders the Administrator
can select "View Orders" option from the menu and the list of orders is
displayed
in a tabular format as shown in fig 1.3.
To view the products associated with an order the link "View Order Details"
can be clicked. To the change the order
status "Change Order Status" link can be clicked.
Figure 1.3 -List of Orders
Figure 1.4 - Create Best Buys
If the Administrator wants to create Best Buys then after selecting
the products to be included in a Best Buy, a screen as shown in fig 1.4
is displayed, where the Administrator can add the description for the
Best Buy and other details.
To view the details of existing Best Buys the user can select "View
Best Buy" option from the menu and a screen like fig 1.5
is displayed. The user has the facility to disable/ delete the Best
Buy also.
Figure 1.5 - View Best Buys
Refer to Install.html
for step-by-step instructions on extracting files, installing and configuring
to
successfully run this application.
Please enter your comments about
this sample in the OTN Sample Code Discussion
Forum. |