Sacramento Java User Group

June 2004 - File Transfer With Live Transfer Status & Cancel Feature

UseCase Diagram

UseCase Diagram - Click to see 100%.


Presentation Outline

Presentation

Controller

Notes

Mapping

Class

logon.jsp logon.html PrepareLogonAction.java Logon screen with user name.
Must login before menu is accessible.
menu.jsp menu.html PrepareMenuAction.java Menu with access to logoff & downloads.
download.jsp download.html PrepareDownloadAction.java Start or cancel a text message download.
{text message} downloadStart.do DownloadStartAction.java The downloaded text message.
Accessible only through the [Download] link on the Downloads page.

Services Outline

Service

Controller

Model

Notes

Mapping

Class

Key

Class

Logon logon.do LogonAction.java logonForm LogonForm.java Verify the user name is not empty.
Downloads downloadStart.do DownloadStartAction.java   Returns a plain text message consisting of 100 lines of text.
downloadCancel.do DownloadCancelAction.java Cancels incomplete download transfers.

Notes

Requires: JBoss, MS SQL Server

The examples presented use HTTP only. They are not dependent upon JavaScript.

Installation Guide

Download ZIP file Download ZIP file. and unzip to an empty folder.
Start MS SQL Server.
Run the SQL scripts in Query Analyzer:

  1. /sql/install/Create DB.sql
  2. /sql/install/Create Objects.sql
  3. /sql/install/CreateLogin.sql
  4. /sql/install/Populate Base.sql

Deploy the EAR file to your JBoss server.

Browse the application at http://localhost/tsg/

In order to build the application you will need to modify the Ant build.xml script. Adjust the file paths to your installation.