Project Life Cycle -project execution phase XML

The life cycle of the project involves the following three stages:

  • Project initiation
  • Project execution
  • Project deployment

You learned about these phases in the earlier projects. Therefore, we will discuss only the project execution phase, which is different for each project.

The Project Execution Phase

In the project execution phase, the development team creates the design of an application. After they create the design, they develop th application. The project execution phase consists of the following stages:

  • Analyzing the requirements
  • Creating the design of the application
  • Constructing and testing the application

Analyzing the Requirements

During the requirements analysis phase, the development team at Choco-Bar analyzed the stated requirements for the new feature. They decided to create a Web service to address this because the Reminder service needs to be accessible to all the affiliates of the company. Using Web services was the best option because each of these affiliates would host their sites by using different technologies.

Based on the requirement analysis, the development team arrived at the following specifications for the Web service:

  • The Web service should accept registration details—including username, password, and e-mail address—from the client application.
  • The Web service should allow the user to enter dates and details of various occasions.

Creating the Design of the Application

During the design phase of the application, the development team decides upon the functionality to be implemented and the technology to be used. In this project, the development team decided to create the Web service by using Oracle JDeveloper because the Web site is created by using J2EE.

Construction

During the construction phase, the development team constructs the application. The primary tasks that the team does in the construction phase are as follows:

  • Create the Web service.
  • Deploy the Web service.
  • Test the Web service.

Having learned about the Development Life Cycle (DLC) of the project, you will now learn about the software that you need to install to run the IBM toolkit.

The Oracle9iAS Containers for J2EE (OC4J) Developer Preview provides a complete J2EE environment, which you can use to develop and deploy J2EE applications. In this chapter, you will learn how to publish Java classes as Web services using OC4J and JDeveloper.

Installing OC4J and JDeveloper

Both OC4J and JDeveloper products are download as open source. After you have downloaded them, follow these steps to install them:

  1. Create a folder to contain the OC4J files.
  2. Unzip the contents of the OC4J zip file into this folder. You can use any standard unzip tool or the following Java command from within the installation folder:
  3. jar xvf oc4j.zip
  4. Move to the J2EEHome folder under the installation folder and run the following command:
  5. java -jar oc4j.jar -install
  6. Tip?/td>Before running the preceding command, ensure that the system PATH includes the <Java_HOME>?in folder.

  7. The installation of the product starts.
  8. Enter a password for the admin login. After the installation is complete, OC4J is ready to use.

To start OC4J from the J2EEHome folder, execute the following command:

To stop OC4J, use this command:

To set up JDeveloper, just unzip the downloaded zip file into a folder. For example, assume this folder to be Jdev9i.

To run JDeveloper, run the file JdevW.exe from the folder Jdev9ijdevin.

Oracle9i JDeveloper and Web Services

The Oracle9i JDeveloper IDE supports Oracle9iAS Web services. The IDE has the following features:

  • It allows the creation of Java stubs to be used in client applications from WSDL documents of existing Web services.
  • It allows the creation of Web services from existing Java classes, EJB classes, and PL/SQL stored procedures.
  • It allows schema-driven WSDL file editing.
  • It allows easy Web service deployment to supported application servers.

Oracie9i AS Web Services Architecture

The Oracle9iAS Containers for J2EE (OC4J) provide support for building Web services from existing code. To use Oracle9iAS Web services, you need to deploy a J2EE .ear file to Oracle9iAS. The J2EE .ear file contains a Web Services Servlet configuration, and it includes an implementation of the Web service. Oracle9iAS Web services supplies the servlet classes, one for each supported implementation type. At runtime, Oracle9iAS uses the servlet classes to access the user-supplied Web service implementation.

The Oracle9iAS Web Services Servlet classes support the following Web services implementation types:

  • Java Class (Stateless)
  • Java Class (Stateful)
  • Stateless Session EJBs
  • PL/SQL Stored Procedure or Function

The OC4J Web services support the following data types:

  • byte
  • boolean
  • double
  • float
  • int
  • long
  • short
  • string
  • java.util.date
  • org.w3c.dom.element
  • org.w3c.dom.document
  • org.w3c.dom.documentFragment


Face Book Twitter Google Plus Instagram Youtube Linkedin Myspace Pinterest Soundcloud Wikipedia

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XML Topics