+ All Categories
Home > Documents > Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel...

Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel...

Date post: 17-Dec-2015
Category:
Upload: britney-miles
View: 218 times
Download: 2 times
Share this document with a friend
Popular Tags:
22
Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell Neilsen Pradeep K Tallogu
Transcript
Page 1: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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

Page 2: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Overview

Introduction Architecture Client Tier Web Services Container Java Beans Database Demo Performance Future Work Reflection Conclusion

Page 3: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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

Page 4: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Architecture

System for accepting online stone orders

Browser Browser Browser

Java Beans

Client Tier

Web Services Container – Stoneware Portal

Database DB2

Page 5: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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

Page 6: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Why JSPs?

Static part – HTML Dynamic part – JSP Encourages use of Java Beans Stoneware provides Java Beans

Page 7: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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 …

Page 8: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Stoneware Architecture

Databases

File Systems

Directory Services

Web Services and

Applications

Stoneware Server

Stoneware Relay

Portal Users

Portal Users

Portal Users

Page 9: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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

Page 10: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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

Page 11: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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)

Page 12: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Package edu.ksu.util;

DonoraddGift()addStoneOrder()…

GiftgetGiftAmount()getDesignation()…

StoneOrdergetStudentID()getNameOnStone()…

PetTrustDonationgetPetName()getGiftSource()…

Roundinground(…)…

Page 13: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Package edu.ksu.beans;

Class ksuBean addDonor(…)

Inserts information into tables Donor, Gift, Audit, StoneOrders, CreditCard

markProcessed(…) Updates the given order as processed

Page 14: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Database Tables

Donor Audit Gifts StoneOrders CreditCard

Page 15: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Demo

Page 16: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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

Page 17: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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

Page 18: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Latency

1113 14

18

0

5

10

15

20

25

500 1000 5000 10000

number of requests

mill

ise

co

nd

s

Page 19: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Future Work

Pet Trust Donations Online Donations Grouping common functionality into one

module (accepting credit card information) Basis for distinguishing the types of

donations

Page 20: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Reflection

Experience working with a B2B Portal Working with JSPs Working on DB2

Page 21: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

Conclusion

No more book-keeping More reachable Accepts credit cards Allows enhancements through creating

donation-specific classes and using the existing beans

Page 22: Ordering Stones on the Senior Sidewalk of Kansas State University Under the guidance of Dr. Daniel Andresen (Major Professor) Dr. Gurdip Singh Dr. Mitchell.

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/


Recommended