15
IT315: Advanced Java Trina VanderLouw Colorado Technical University Instructor Susan Ceklosky April 24, 2012 Highlights: Web Services, JSTL, JSP, SWING, RESTful, MySQL Database, JavaBeans Programs Used: NetBeans, Firefox, MySQL, Word Instructor Feedback: Hi Trina, you did an outstanding job with your proposal. What an excellent way to end the session! I think you hit just about all of the key marketing strategies for getting a new web application out there! Again, excellent job on your proposal Trina! It's clear to see you put a lot of thought into it. Your proposal was detailed, well illustrated and easy to understand and read. Hi Trina, you continue to do an excellent job with the NetBeans tutorials. I'm really glad you included screen shots illustrating that you ran the RESTful Service in the Spring-enabled Project. As usual, your write-up was very thorough as it described in detail the steps you took throughout the tutorial. You successfully created a RESTful Web Service, added a Google Map Feature to the RESTful Web Service and implemented a RESTful Web Service in the Spring Framework. Excellent work on the tutorial! Hi Trina, outstanding job on this assignment! Creating a multi-threaded server application is programmatically very challenging. You successfully implemented an inner Class within your Server that implemented the Runnable Interface. You successfully used the Executor Framework (Executor and ExecutorService Interfaces) to manage multiple threads in your Server. You successfully implemented the run( ) method within your Runnable defining the task executed by each thread. Again, your code is well commented and the overall code structure is excellent. You followed the Java Indentation style by properly indenting blocks of code. Your Class, Field,

IT315: Advanced Java Trina VanderLouw Colorado … · Trina VanderLouw Colorado Technical University Instructor Susan Ceklosky April 24, 2012 Highlights: Web Services, JSTL, JSP,

  • Upload
    vobao

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

IT315: Advanced Java

Trina VanderLouw

Colorado Technical University

Instructor Susan Ceklosky

April 24, 2012

Highlights: Web Services, JSTL, JSP, SWING, RESTful, MySQL Database, JavaBeans

Programs Used: NetBeans, Firefox, MySQL, Word

Instructor Feedback: Hi Trina, you did an outstanding job with your proposal. What an excellent

way to end the session! I think you hit just about all of the key marketing strategies for getting a

new web application out there! Again, excellent job on your proposal Trina! It's clear to see you

put a lot of thought into it. Your proposal was detailed, well illustrated and easy to understand

and read.

Hi Trina, you continue to do an excellent job with the NetBeans tutorials. I'm really glad you

included screen shots illustrating that you ran the RESTful Service in the Spring-enabled Project.

As usual, your write-up was very thorough as it described in detail the steps you took throughout

the tutorial. You successfully created a RESTful Web Service, added a Google Map Feature to

the RESTful Web Service and implemented a RESTful Web Service in the Spring Framework.

Excellent work on the tutorial!

Hi Trina, outstanding job on this assignment! Creating a multi-threaded server application is

programmatically very challenging. You successfully implemented an inner Class within your

Server that implemented the Runnable Interface. You successfully used the Executor Framework

(Executor and ExecutorService Interfaces) to manage multiple threads in your Server. You

successfully implemented the run( ) method within your Runnable defining the task executed by

each thread. Again, your code is well commented and the overall code structure is excellent. You

followed the Java Indentation style by properly indenting blocks of code. Your Class, Field,

Method, and Constructor names follow Java Naming Conventions. You did a wonderful job

debugging the issue you encountered with the sendData method! You did everything you could

possibly do to uncover the error. Your essay was very well written. Congratulations on doing an

excellent job with this assignment!

Hi Trina, all I can say is WOW! You did an outstanding job implementing a JSP Web

Application that Connects to a MySQL Database Server! Congratulations! This was a

challenging assignment. Not only did you have to focus on the actual implementation of the JSP

Web Application, but you also had to get up to speed with the process of how to do it using

NetBeans. You did an excellent job implementing a JSP Web Applicaiton that interacts with the

Registrar MySQL Database. Your Web Application has multiple Forms that contain Fields for

user entry and selection of data. Each form has a Submit button that when pushed initiates a

request to the Web Server. Your Web Application executes multiple queries against the tables in

the Registrar Database. I was so pleased that you implemented an insert SQL statement and way

to go on creating the additional tables. That was a great idea! Your Web Application processes

and displays the query results in table format. I was also really pleased to see you used a

JavaBean. Awesome job! To overcome the issue you're encountering with the Course ID, could

you use a hidden field in your register.jsp form. Then in your StudentBean.java, you wouldn't

have to pass course_nc twice. You could pass course_id to the setCourseID method and remove

the nested if-else logic. You did an excellent job creating a Java Web – Web Application, JSP

Page(s) and a Stylesheet. You did an excellent job implementing Communication between your

Web Application and the Registrar Database. You successfully set up a JDBC data source and

connection pool, referenced the data source from the application, and added the database driver’s

JAR file to the server. You did an outstanding job adding the JSTL Libraries and Code to your

JSP Pages. You did an excellent job using a JavaBean. Again, congratulations this process wasn't

straightforward! Your screen shots illustrated that you successfully implemented a JSP Web

Application that Connects to a MySQL Database Server. The write-up you included with your

screen shots clearly described the inputs to, outputs from, and actions taking place in the web

application as well as the design/development process you went through to create your Web

Application. Keep up the excellent work!

Final Grade: A

JAX-WS Web Services Tutorial

I had fun with this assignment as I have with past assignments like this. It is really great to have a

tutorial and a live chat to follow. I learn a lot because I am a visual learner so reading the tutorial and

watching the live chat demonstration helps me retain the information more than just listening to a

presentation. I like that I get to work at my own pace too. I am excited to have great templates to work

from in the future. I am also excited about learning more about web services. I still have a lot to learn

but it does get easier to understand the more I do it.

I don’t have any questions or anything that I struggled with for the assignment. The only thing I

am still digesting is what method is the best for testing the application. It is interesting if one or the other

is better or more standard than the others. I was able to finish the tutorial so now I need to go back and

revisit each project. I have attached my screen shots of each of the eight steps in the tutorial. I also added

a references page at the end for future reference.

This screen shot shows the creation of a web service container using an EJB Module in the Java EE.

It created a new project with libraries and a configuration file. I then realized I needed to add it as a web application which is in the next screen.

This screen shot shows creating a web service using the Web Application from the Java Web category.

It also created a new project with libraries and also a default index.jsp file.

This screen shot shows the designing of the web service. I used the wizard to add a new web service and created the package

org.me.calculator. Once the wizard was finished I had a new file that I could view as source code or in design mode. This is design mode:

This is a screen shot showing the web service again. This time it is in the source code screen. It was interesting to see the

code it generated. It has everything set up with the package and imports as well as the class. I am ready to start adding custom codes.

This screen shot shows the creation of an operation. I used the design mode to add it,

but I could have also added it using a right click in the project node.

This screen shot shows the deployment and testing of the web service.

The first screen shows the method and the second screen shows the results.

Result:

This screen shot shows how to consume the web service in a Java class in a Java SE application.

I used the wizard to create the application and then added the “add” operation to the class. I was able to enter the code and run the project.

This screen shot shows how to consume the web service in a servlet in a web application.

This shows the code behind the servlet and the next screen shot shows how it will run in the browser.

This screen shot shows how to consume the web service in a JSP page in a web application.

The first screen shows the code and the following screen shows the browser when the application runs.

References

Ceklosky, S. (2012, April 18). [Live Chat #18] Colorado Technical University Online, Virtual Campus;

IT315: Advanced Java. Retrieved from https://campus.ctuonline.edu

NetBeans. (2012). Getting started with JAX-WS web services. Retrieved from

http://netbeans.org/kb/docs/websvc/jax-ws.html