Σχόλια 0

Το κείμενο της παρουσίασης

(JDeveloper) is an integrated developmentenvironment for Java programming.

It provides features for designing, developing, debugging, and deployingJava and other related files that are part of the Java 2 Platform EnterpriseEdition (J2EE).

It has wizards and code generators that make the internal mechanisms ofJava easier. These allow you to concentrate on solving business problemsin Java.

3

Overview of JDeveloper

J2EE is complex. JDeveloper supports the management of J2EE’s majorcomponents:

•JSP pages

•UIX applications

•Struts

•Web services

•XML editing

As we have seen, it also supports the visual design and creation of GUI’s.

It also has very powerful debugging capabilities.

4

Technology Templates

When creating application workspaces you can select the underliningtechnology scope by using a technology template. Thetechnologytemplate

contains default projects that are oriented toward a certaintechnology such asStruts. The template affects what options an objectsare available by default for use in projects.

•Web Application [Default]

This template creates a Model project for ADF BusinessComponents and a ViewController project for Struts, ADF UIX,or JSP components. It is used to build web applications usingStruts that need to access business services.

5

Technology Templates

•Web Application [Default–

no controller]

This template creates a Model project oriented toward ADFBusiness Components and a View project for ADF UIX or JSPcomponents used for building web applications that need toaccess business services.

•Web Application [JSP, Struts, EJB]

This template creates a Model project for the EJB data model anda ViewController project for JSP and Strut components used forbuilding web applications that need to access business servicesbased on Enterprise JavaBeans.

6

Technology Templates

•Web Application [JSP, EJB]

This template creates a Model project for the EJB data model anda View project for JSP components (with no controller) used forbuilding web applications that need to access business servicesbased on EJBs.

•Java Application [Default]

This template creates a Model project for ADF BusinessComponents and a View project for the client used for buildingrich client applications that need to access ADF BusinessComponents.

7

Technology Templates

•Java Application [Java, Swing]

This template creates a Client project for the Java, Swing/JFC, orJavaBeans source code used for building Java applications that areconnected to a data source.

•“No Template”

This creates a single project with access to all alternatives.

8

Technology Templates

Here is theCreate Application Workspace:

Once you have selected anApplication Template, inapplicable options will not beavailable unless you explicitly allow them.

Application

Template

9

Technology Templates

TheFilter By

pulldown list box on theNew Gallery

dialog box canbe set to either:

•Project Technologies (filtered)

•All Technologies (unfiltered)

10

Technology Templates

All Items filter

11

Technology Templates

Available items filter

12

Application Development Framework (ADF)

The benefits of ADF are more evident when creating complexapplications. When building applications, the framework automaticallytakes advantage of ADF components which greatly deduces the amountof coding required. ADF also makes the modification of applicationseasier.

13

Struts

Struts

is a framework that supports the logic behind building webapplications. It was developed by The Apache Software Foundation.

It is a popular framework for managing web application development,but has aSTEEP

learning curve. JDeveloper reduces this learningcurve.

Working withStruts

requires a lot of skill.

Chapter 17 coversStruts

and has some hands-on exercises.

14

Creating Application Code in JDeveloper

JDeveloper is a tool that can:

•Act as a blank sheet for the do-it-yourselfer

•A code generator for developing applications using $GLtechnologies such as drag-and-drop.

In JDeveloper, each program usually consists of two JDeveloperprojects:

•Model project

This project contains business services components built andwritten using Java and XML to provide the database interactioncomponents (business services).

•View project or ViewContoller project

These contain components and logic for the user interface builtand written using Java and complementary web languages likeHTML

andJavaScript.

JDeveloper is optimized to help you produce multi-level a architecturefor your database applications.

16

Application Workspaces

Anapplication workspace

(or workspace) is the highest-level containerwithin JDeveloper. It is made up of projects that contain the code files.A workspace (a folder) contains all related projects that you need toaccess in one work session and is implemented with a single file that hasa.jws

A project is the next level container in JDeveloper that contains codefiles. A project represents a number of code files that are deployedtogether (like a Java application). A project is implemented in a singleXML file that has a.jpr