130 likes | 275 Views
Database Publishing on the Web: An Overview. 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. Overview: Database Publishing.
E N D
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
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
WRB OAS Architecture Applications(Cartridge servers) Web client Cartridgeserver factories RM/Proxy HTTP Listener ORB Java CORBA client
Oracle Application Server 4.0Java-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)
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
Java-Web Cartridges Applicationclasses &Java WebToolkit 1 2 Configurationdata Databaseserver Communicationwith otherOAS components Generated HTML
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
HTML Dynamicdata HTML 2 htmlFileclass Static HTML file HTML JavaApplication Dynamicdata <WRB_INC> HTML Using Java Web Toolkit: Application Techniques 1 JavaApplication
X1 X2 Y1 Y2 1 Queue X Queue Y Applications and Cartridges Application(runs as a cartridge server process)
Application(cartridge server) 4 5 3 CS Factory OAS Web Requests Web Client 1 Listener 2 Web Request Broker(WRB)
Intercartridge Exchange (ICX) PL/SQL Application Java Application Client 1 Web Request Broker (WRB)
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