29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

From a lower-level perspective, we can outline the list of components that provide<br />

the aforementioned functionality:<br />

► A main application menu, which lists the options available to the user<br />

► A registration process where new users enter their details<br />

► A search mechanism, which provides shoppers with a fast means to find<br />

items of interest, based on a keyword description<br />

► A shopping cart, which lists the items currently selected by the user, and also<br />

provides editing functionality for the user to modify his choices<br />

► An order completion mechanism<br />

1.4.2 Sample database<br />

Data used by our sample application is maintained in database tables. In keeping<br />

with our intent to keep things simple, the tables were designed with a basic<br />

approach in mind, with columns clearly labeled and constraints kept to a<br />

minimum. One may notice that, in some places, the use of constraints and<br />

triggers might have been justified. However, in cases where implementing these<br />

features might have complicated the issue and distracted us from our initial<br />

purpose, we made a conscious decision to do away with them.<br />

User information was not stored directly in our application database. Since<br />

<strong>WebSphere</strong> provides functionality to store user profiles in a predesigned<br />

SALESAPP database, we decided to make use of this feature to simplify the<br />

implementation of an authentication mechanism and storage of user-related<br />

data.<br />

Other types of data are stored in the following tables in a custom-designed<br />

database: CUSTOMERS, SHIPPING_ORDER, USERS, and ITEM.<br />

16 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!