Ordering Stones on the Senior Sidewalk of Kansas State
University
Under the guidance of Dr. Daniel Andresen (Major Professor)Dr. Gurdip SinghDr. Mitchell Neilsen
Pradeep K Tallogu
Overview
Introduction Architecture Client Tier Web Services Container Java Beans Database Demo Performance Future Work Reflection Conclusion
Introduction
Offers an opportunity to commemorate graduates’ walk
Was accepting orders through written forms Carried the burden of book-keeping Website would be more reachable Using credit cards simplifies the transaction
Architecture
System for accepting online stone orders
Browser Browser Browser
Java Beans
Client Tier
Web Services Container – Stoneware Portal
Database DB2
Client Tier
Two sets of JSPs Gather information
Student (name, ID, college) Donor ( address, …) Payment Information (Credit card information) Certificate (Optional)
Processing Display details Mark as processed
Why JSPs?
Static part – HTML Dynamic part – JSP Encourages use of Java Beans Stoneware provides Java Beans
Web Services Container – Stoneware Single point of access to organizational web
content Provides a host of services like
SSL Gateway Services Consolidated Authentication Stoneware Components Registration Services Development …
Stoneware Architecture
Databases
File Systems
Directory Services
Web Services and
Applications
Stoneware Server
Stoneware Relay
Portal Users
Portal Users
Portal Users
Auto-Login
Pre-authentication index.html (takes username and password) Here we redirect it to the appropriate page by
supplying the username and password on the background
Relay/Server Communications
Stoneware Server
Stoneware Relay
Directory
username, password and account status
1.Relay sends username and password
2. Server locates username, verifies password and account status
3. Server returns status code to Relay
Post-Authentication
Sets a Session ID Determines user’s access, builds
navigational links The user is now logged in Presents the user with a web page ( the order
form)
Package edu.ksu.util;
DonoraddGift()addStoneOrder()…
GiftgetGiftAmount()getDesignation()…
StoneOrdergetStudentID()getNameOnStone()…
PetTrustDonationgetPetName()getGiftSource()…
Roundinground(…)…
Package edu.ksu.beans;
Class ksuBean addDonor(…)
Inserts information into tables Donor, Gift, Audit, StoneOrders, CreditCard
markProcessed(…) Updates the given order as processed
…
Database Tables
Donor Audit Gifts StoneOrders CreditCard
Demo
Lines of Code 900 lines of Java Code for the packages
edu.ksu.util; and edu.ksu.beans; 1200 lines of JSP code
Configuration Windows 2000 Server Pentium III 1.26 GHz RAM 1.28 GB JVM – 1.3.1
Load Testing and Performance
Throughput
1493.391257.87
911.18 669.19
0
500
1000
1500
2000
500 1000 5000 10000
number of requests
thro
ug
hp
ut
Latency
1113 14
18
0
5
10
15
20
25
500 1000 5000 10000
number of requests
mill
ise
co
nd
s
Future Work
Pet Trust Donations Online Donations Grouping common functionality into one
module (accepting credit card information) Basis for distinguishing the types of
donations
Reflection
Experience working with a B2B Portal Working with JSPs Working on DB2
Conclusion
No more book-keeping More reachable Accepts credit cards Allows enhancements through creating
donation-specific classes and using the existing beans
References
Java Servlets and JSP by Andrea Steelman and Joel Murach.
Java Server Pages Documentation – http://java.sun.com/products/jsp/
Stoneware 3 – Pinnacle Computer Services. [4] Stoneware Web Portal API Documentation –
www.stone-ware.com /support/ developerzone/ java/javadocs/
[5] Apache Jakarta Project - Apache JMeter: http://jakarta.apache.org/jmeter/