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

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

Embed Size (px)

Citation preview

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

Matthew Ellis 0239253723rd January 2006

CM610 AssignmentBsc(Hons) Computing

Studies

Page 2: Matthew Ellis 02392537 23 rd January 2006 CM610 Assignment Bsc(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.

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

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

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

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.

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

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.

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

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

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

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”

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

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!