Transcript Chapter 1

CHAPTER 1
OVERVIEW of JDEVELOPER
1
Overview of JDeveloper
Oracle’s JDeveloper 10g (JDeveloper) is an integrated development
environment for Java programming.
It provides features for designing, developing, debugging, and deploying
Java and other related files that are part of the Java 2 Platform
Enterprise Edition (J2EE).
It has wizards and code generators that make the internal mechanisms of
Java easier. These allow you to concentrate on solving business problems
in Java.
2
Overview of JDeveloper
J2EE is complex. JDeveloper supports the management of J2EE’s major
components:
•
•
•
•
•
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.
3
Technology Templates
When creating application workspaces you can select the underlining
technology scope by using a technology template. The technology
template contains default projects that are oriented toward a certain
technology such as Struts. The template affects what options an objects
are available by default for use in projects.
• Web Application [Default]
This template creates a Model project for ADF Business
Components and a ViewController project for Struts, ADF UIX,
or JSP components. It is used to build web applications using
Struts that need to access business services.
4
Technology Templates
• Web Application [Default – no controller]
This template creates a Model project oriented toward ADF
Business Components and a View project for ADF UIX or JSP
components used for building web applications that need to
access business services.
• Web Application [JSP, Struts, EJB]
This template creates a Model project for the EJB data model and
a ViewController project for JSP and Strut components used for
building web applications that need to access business services
based on Enterprise JavaBeans.
5
Technology Templates
• Web Application [JSP, EJB]
This template creates a Model project for the EJB data model and
a View project for JSP components (with no controller) used for
building web applications that need to access business services
based on EJBs.
• Java Application [Default]
This template creates a Model project for ADF Business
Components and a View project for the client used for building
rich client applications that need to access ADF Business
Components.
6
Technology Templates
• Java Application [Java, Swing]
This template creates a Client project for the Java, Swing/JFC, or
JavaBeans source code used for building Java applications that are
connected to a data source.
• “No Template”
This creates a single project with access to all alternatives.
7
Technology Templates
Here is the Create Application Workspace:
Application
Template
Once you have selected an Application Template, inapplicable options will not be
available unless you explicitly allow them.
8
Technology Templates
The Filter By pulldown list box on the New Gallery dialog box can
be set to either:
• Project Technologies (filtered)
• All Technologies (unfiltered)
9
Technology Templates
All Items filter
10
Technology Templates
Available items filter
11
Application Development Framework (ADF)
The benefits of ADF are more evident when creating complex
applications. When building applications, the framework automatically
takes advantage of ADF components which greatly deduces the amount
of coding required. ADF also makes the modification of applications
easier.
12
Struts
Struts is a framework that supports the logic behind building web
applications. It was developed by The Apache Software Foundation.
It is a popular framework for managing web application development,
but has a STEEP learning curve. JDeveloper reduces this learning
curve.
Working with Struts requires a lot of skill.
Chapter 17 covers Struts and has some hands-on exercises.
13
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 $GL
technologies such as drag-and-drop.
• Automatically generate basic database interface code which allows
you to customize as needed.
14
Creating Application Code in JDeveloper
In JDeveloper, each program usually consists of two JDeveloper
projects:
• Model project
This project contains business services components built and
written using Java and XML to provide the database interaction
components (business services).
• View project or ViewContoller project
These contain components and logic for the user interface built
and written using Java and complementary web languages like
HTML and JavaScript.
JDeveloper is optimized to help you produce multi-level a architecture
for your database applications.
15
Application Workspaces
An application workspace (or workspace) is the highest-level container
within JDeveloper. It is made up of projects that contain the code files.
A workspace (a folder) contains all related projects that you need to
access in one work session and is implemented with a single file that has
a .jws extension. The .jws file is an XML file that contains the names of
the project files (containers for code files) that comprise it.
16
Projects
A project is the next level container in JDeveloper that contains code
files. A project represents a number of code files that are deployed
together (like a Java application). A project is implemented in a single
XML file that has a .jpr extension and contains the names of the code
files that comprise it.
17
Development Steps
1. Create an application workspace using a template.
2. Define and test the business services objects.
3. Add code for user interface objects. This code uses objects in the
business services project.
4. Test the user interface code with the business services project.
5. Deploy the Model and View projects.
18
Hands-On Exercises
The hands-on exercises will:
• Build a client/server application using wizards
• Create a simple JSP page
ENJOY!!!
19