Matthew Ellis 02392537 23 rd January 2006 CM610 Assignment Bsc(Hons) Computing Studies

Preview:

Citation preview

Matthew Ellis 0239253723rd January 2006

CM610 AssignmentBsc(Hons) Computing

Studies

About this application

This application is a Java enterprise application which accesses a PointBase database and allows you to search by ID and surname, insert a new record or update an existing record.

Please follow the following instructions to set up the application on a standard school of informatics computer set up.

The files

• Insert CD into the drive

• Copy the main directory “ass610” to the U drive of the computer

• Open the command window and navigate, using cd (change directory) to:

u:/ass610/ejb/ass610

Point Base

• All the programs and servers are contain in “Start”, “Programs”, “Computing”, “Java”,”J2EE 1.4 SDK”

• Start the PointBase Server• Start the Default Server• Open a web browser and navigate to

http://localhost:4848/asadmin• Expand the “JDBC” node• In the main window select “JDBC Resources” and select

new• Type “jdbc/addressbook” in the JNDI Name field• Select “PointBasePool” from the “Pool Name” drop down• Click “OK”. The data source is now declared.

The Deployment

• Open the Deployment Tool for Sun Java System Application Server

• Click “File”, then “Open”. Navigate to “U:\ass610\ejb\ass610” and select “Assignment.ear” and click “Open Module”

• The application will now be shown in the left hand part of the window.

The Deployment

• Select the application “Assignment”

• Click “Tools”, then “Deploy”

• On the pop up dialog box click “Ok”

• On the next pop up dialog box click “Close”, when available

• The application is now deployed

Creating the Database

• In the command window navigate to “U:\ass610\ejb\ass610”

• Type “asant create-db_common

• This will run the SQL script and deploy the database

• You are now ready to use the “Global Address Book”

Using the Global Address Book

• Open a web browser.

• Type in the URL http://localhost:8080/address

• This will display the home page for “The Global Address Book”

• You can search, update and add a new entry. Enjoy!

Recommended