close

Вход

Забыли?

вход по аккаунту

код для вставкиСкачать
8
Database Publishing on the
Web: An Overview
Copyright  Oracle Corporation, 1998. All rights reserved.
Objectives
After completing this lesson, you should
be able to do the following:
• Describe the role of Oracle Application
Server (OAS) in database publishing
• Outline the components in a Java-Web
application
8-2
Copyright  Oracle Corporation, 1998. All rights reserved.
Overview: Database Publishing
HTTP://oracle-travel.oracle.com/java/flightclass
Database
HTML
Your Requested
Flight Information
From our flight database...
Java Web
Toolkit
classes
New York JFK to Swansea Intl
07:45
SWA145
13:30
SWA165
19:45
UA9437W
Java application
classes
Java-Web Cartridge
8-3
Copyright  Oracle Corporation, 1998. All rights reserved.
OAS Architecture
Web client
Cartridge
server
factories
Applications
(Cartridge servers)
RM/
Proxy
WRB
HTTP
Listener
ORB
Java CORBA client
8-4
Copyright  Oracle Corporation, 1998. All rights reserved.
Oracle Application Server 4.0
Java-Related Features
• Integrated, cartridge-based Web
applications
– Java Web Toolkit
– Integration with other application
types (Intercartridge Exchange)
• Multithreaded cartridges
• CORBA-IIOP applications
– Java-CORBA Objects (JCO)
8-5
Copyright  Oracle Corporation, 1998. All rights reserved.
Oracle Application Server 4.0
Java-Related Features
• AppBuilder for Java packaged with
OAS
– HTML/Java wizard
– Java CORBA wizard
• Transaction control through JTS
(Enterprise Edition)
• JDBC, pl2java support
8-6
Copyright  Oracle Corporation, 1998. All rights reserved.
Java-Web Cartridges
Application
classes &
Java Web
Toolkit
1
Configuration
data
Communication
with other
OAS components
8-7
2
Database
server
Generated HTML
Copyright  Oracle Corporation, 1998. All rights reserved.
Java Web Toolkit
Includes Java packages for:
• Generating HTML elements (oracle.html)
• Getting client request information
• Connecting to an Oracle database
• Mapping to PL/SQL datatypes
• Writing messages to the OAS logger
8-8
Copyright  Oracle Corporation, 1998. All rights reserved.
Using Java Web Toolkit:
Application Techniques
1
HTML
Java
Application
Dynamic
data
HTML
2
Static HTML file
<WRB_INC>
htmlFile
class
Java
Application
HTML
Dynamic
data
HTML
8-9
Copyright  Oracle Corporation, 1998. All rights reserved.
Applications and Cartridges
Application
(runs as a
cartridge server
process)
X2
X1
Y2
Y1
1
Queue X
Queue Y
8-10
Copyright  Oracle Corporation, 1998. All rights reserved.
OAS Web Requests
Application
(cartridge server)
Web Client
1
Listener
4
5
2
Web Request Broker
(WRB)
3
CS Factory
8-11
Copyright  Oracle Corporation, 1998. All rights reserved.
Intercartridge Exchange (ICX)
PL/SQL
Application
Java
Application
Client
1
Web Request Broker (WRB)
8-12
Copyright  Oracle Corporation, 1998. All rights reserved.
Summary
• DatabaseWeb publishing
– provides database information in
dynamic Web pages
– may be implemented using the Java-
Web cartridge in OAS
• Java Web Toolkit provides classes for
HTML generation and database access
• OAS 4.0 also supports Java-CORBA
applications
8-13
Copyright  Oracle Corporation, 1998. All rights reserved.
1/--страниц
Пожаловаться на содержимое документа