Copyright Oracle Corporation, All rights reserved. 8 Database Publishing on the Web: An Overview
8-2 Copyright Oracle Corporation, 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 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-3 Copyright Oracle Corporation, All rights reserved. Overview: Database Publishing Java Web Toolkitclasses HTML Database Java-Web Cartridge Java application classes Your Requested Flight Information From our flight database... New York JFK to Swansea Intl 07:45SWA145 13:30SWA165 19:45UA9437W
8-4 Copyright Oracle Corporation, All rights reserved. WRB OAS Architecture HTTP Listener Applications (Cartridge servers) Cartridge server factories ORB RM/ Proxy Web client Java CORBA client
8-5 Copyright Oracle Corporation, 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) 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-6 Copyright Oracle Corporation, All rights reserved. Oracle Application Server 4.0 Java-Related Features AppBuilder for Java packaged with OAS – – HTML/Java wizard – – Java CORBA wizard AppBuilder for Java packaged with OAS – – HTML/Java wizard – – Java CORBA wizard Transaction control through JTS (Enterprise Edition) JDBC, pl2java support Transaction control through JTS (Enterprise Edition) JDBC, pl2java support
8-7 Copyright Oracle Corporation, All rights reserved. Java-Web Cartridges Communication with other OAS components 1 2 Configuration data Application classes & Java Web Toolkit Database server Generated HTML
8-8 Copyright Oracle Corporation, 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 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-9 Copyright Oracle Corporation, All rights reserved. Using Java Web Toolkit: Application Techniques HTML HTML Dynamic data 1 HTML HTML Static HTML file 2 Java Application htmlFile class Java Application
8-10 Copyright Oracle Corporation, All rights reserved. Y1 X2 X1 1 Applications and Cartridges Application (runs as a cartridge server process) Queue X Queue Y Y2
8-11 Copyright Oracle Corporation, All rights reserved. Web Request Broker (WRB) 2 Web Client OAS Web Requests 1 Application (cartridge server) CS Factory Listener
8-12 Copyright Oracle Corporation, All rights reserved. Intercartridge Exchange (ICX) PL/SQL Application Java Application 1 Web Request Broker (WRB) Client
8-13 Copyright Oracle Corporation, 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 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-14 Copyright Oracle Corporation, All rights reserved.