DOC PREVIEW
CMU ISM 95733 - Homework

This preview shows page 1-2-3-4 out of 13 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Homework 5Due by 9 P.M. Thursday May 1 200395-733 Internet Technologies Carnegie Mellon UniversityHomework 5 Due by 9 P.M. Thursday May 1 2003 In this lab you will work with JAXM, JDBC, servlets and JavaMail. The idea is to complete the web application described in the figure below. This application and the figure below is adapted from the text “XML and Java” by Maruyama, Tamura, and Uramoto, Addison-Wesley. Since this is the week prior to finals week, no late submissions will be accepted. Please turn in any incomplete work by the deadline for partial credit. 195-733 Internet Technologies Carnegie Mellon UniversityFor this project, it would probably be a good idea to uninstall the older version of the JWSDP and download and install the new version (JWSDP1.1). I’ll provide help with either version but I’ll provide youwith a build.xml file whose classpath is set to the newer version’s jar files.Below is a display of my directory structure for this assignment. Please use these names when completing your solution. In that way the TA’s will be able to grade the assignment and I will be able to answer your questions quickly.With respect to the assignment’s submission, I would like for you to turn in paper copies of the documentedJava files below. I would also like you to turn in an otherwise blank floppy with the directory structure and files shown. Please delete your password from the build.properties file. Also, include a comment on paper that states if the program is working or not. And if it is not working please describe what is wrong. The TA should be able to load the application into Tomcat from the floppy.You will need to build a small database in Microsoft Access and make it available to JDBC. The database will hold city name and current temperature pairs. The database will have the following data. MS Access file weather.mdb The table is named CityTempPairsPittsburgh 76 San Diego 74Chicago 55New York 80London 78Vancouver 68Notes:Do not have your JAXMServlet implement SingleThreadedModel. In this exercise, you may ignore issues concerning concurrent access. Just assume that we will have one visitor at a time.You may use code that has been presented on the slides. There is material there that shows you how to workwith JavaMail, JDBC and JAXM.My build.xml file appears below. With this file you should be able to run your JWSDP1.1 application without the use of a classpath variable set. When you download the new JWSDP you may be asked to copy some files into a particular directory. Please do so. The new JWSDP has support for JavaMail.You should test your code with two email addresses. If you don’t have a friend who is willing to receive a little unwanted email you can use mine: [email protected] Internet Technologies Carnegie Mellon UniversityThe required directory structure for Homework 5 appears below. The comments are meant to help you layout and understand the project. My root directory for this project is D:\McCarthy\www\95-733\examples\WeatherAppUsingJAXMD:.├───HTMLWeatherRegistration a web application that allows user to register│ │ build.properties holds the path of this web app and username and password│ │ build.xml is an ant program that includes jwsdp1.1 jar files│ ││ ├───build this directory is built by ant│ │ │ JAXMPowerWarningForm.html│ │ │ │ │ ││ │ └───WEB-INF│ │ │ web.xml this file is a deployment descriptor that assigns a URL pattern│ │ │ to the JAXMPowerWarn servlet│ │ ├───classes Constructed by ant compile│ │ │ JAXMPowerWarn.class│ │ │ JAXMScheduler.class│ │ │ JAXMWatcher.class│ │ │ Mailer.class│ │ ││ │ └───lib files copied here by ant│ │ are.jar│ │ xml4j.jar│ │ xss4j.jar│ ││ ├───src│ │ JAXMPowerWarn.java an HTTP servlet pointed to by JAXMPowerWarningForm.html│ │ JAXMScheduler.java tells JAXMWatcher objects when to run│ │ JAXMWatcher.java makes synchronous JAXM SOAP calls to the weather web service│ │ Mailer.java handles email when the temperature is high│ ││ └───web│ │ JAXMPowerWarningForm.html holds the html for user registrations │ ││ └───WEB-INF│ web.xml holds the deployment descriptor (see above)│└───XMLWeatherService a web application that returns a temperature given a city in its │ build.properties database │ build.xml │ weather.ldb the Microsoft Access weather database │ weather.mdb the one table in this RDBMS is called CityTempPairs │ it has two fields, city and temperature ├───build │ └───WEB-INF │ │ web.xml the deployment descriptor for this second web application │ │ │ ├───classes │ │ │ │ GetWeatherJAXMServlet.class takes and returns a SOAPMessage │ │ │ └───lib │ are.jar395-733 Internet Technologies Carnegie Mellon University │ xml4j.jar │ xss4j.jar │ ├───src │ GetWeatherJAXMServlet.java This is a JAXM Servlet │ └───web └───WEB-INF web.xmlBelow is a copy of my build.xml ant program. I used this for both web applications without using a classpath. Please note that it is setting the classpath to JWSD1.1 directories. If you have stored these files elsewhere or if you are still using an older version of JWSDP then you will need to make modifications to these


View Full Document

CMU ISM 95733 - Homework

Download Homework
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?