Your SlideShare is downloading. ×
PL WEB
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

PL WEB

312
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
312
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • iAS Layout This provides a snapshot of the building blocks that make up iAS. Apache 8i Cache Forms Reports Discoverer
  • Web Request Flow 1. A listener/dispatcher receives an HTTP request from a client. If the request is for an Apache modules, the request is handled by the corresponding module. The listener examines the URL and determines which cartridge should handle the request. If the request is for a static document then it is handle by the listener itself, via the http core functionality. 2. Request for non static files such as security, redirection, CGI, Perl, Java Servlets, SSI and other applications is handle by the corresponding module. 3. Request handle by the mod_Jserv, such as Jservlets and JSP are pass from the mod_jserv module to a separate process running a JVM, Java Virtual Machine. This is service by yet another process ( on a separate port). 4. JVM executes the Java Servlet/JSP and returns the html to the mod_jserv. 5. The apache core, http code, code return the resulting html page.
  • Transcript

    • 1. i AS: Single Integrated Product 8 i Cache Browser Apache mod PL/SQL mod jserv JDK Servlets Files Oracle8 i HTTP/ HTTPS Forms Reports Discoverer EJB Servlets PL/SQL SQL mod_ose EJB Servlets PL/SQL SQL Database Cache mod_rewrite
    • 2. Why Apache ?
      • De-Facto Standard Web Listener
        • Over 59% market share today
        • Serves as the HTTP entry point to i AS
      • Scalable
        • Replicate across many middle tier nodes
        • Load-balanced access through network load balancers (Local / Distributed Director, IP round robin, etc.)
      • Extensible
        • Delegate handling of HTTP requests to mods
    • 3. Apache “ Mods”
      • Standard and Oracle “Mods”
        • modJserv: Stateless Servlets in JVM pools
        • modRewrite : Rerouting/writing of requests
        • modPerl : Perl script processing
        • modPLSQL: Stateless PL/SQL
        • modSSL: Supported SSL
        • modAuth : Authentication services
    • 4. mod_plsql
      • Generates HTML files from PL/SQL code.
      • Allows dynamic creation of web content from inside the database, including serving images and documents.
      • Is the replacement for the PL/SQL Cartridge in OAS and earlier versions of Oracle WebServer.
      • Enabler of many 11i Self-Service Modules and Oracle Portal
      Client Apache Listener PL/SQL Engine Generates HTML Oracle 8i/9i mod_plsql
    • 5. Example PL/SQL Code for mod_plsql
      • create or replace procedure TestHTMLPage is
      • begin
      • htp.htmlOpen; -- prints <HTML>
      • htp.headOpen; -- prints <HEAD>
      • htp.title(‘Test HTML Page’); -- prints <TITLE>
      • htp.headClose; -- prints </HEAD>
      • htp.bodyOpen; -- prints <BODY>
      • htp.tableOpen(‘border=2’); -- prints <TABLE…>
      • htp.tableRowOpen; -- prints <TR>
      • htp.tableData(‘This will be in the 1 st column’); htp.tableRowClose;
      • htp.tableRowOpen;
      • htp.tableData(‘This will be in the 2 nd column’);
      • htp.tableRowClose;
      • htp.tableClose;
      • htp.bodyClose;
      • htp.htmlClose; -- prints </HTML>
      • end;
    • 6. mod_JServ
      • Like mod_plsql, but for running Java code, specifically servlets and JSPs (Java Server Pages)
      • The java runs in Java Virtual Machine (JVM) configured for Apache
    • 7. Example Servlet Code
      • public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      • response.setContentType(&quot;text/html&quot;);
      • PrintWriter out = new PrintWriter (response.getOutputStream());
      • out.println(&quot;<html> &quot;);
      • out.println(&quot;<head><title>Test HTML Page</title></head> &quot;);
      • out.println(&quot;<body> &quot;);
      • out.println(“<table border=2>”);
      • out.println(“<tr>”);
      • out.println(“<td>This will be in the 1 st column</td>”);
      • out.println(“<td>This will be in the 2 nd column</td>”);
      • out.println(“</tr>”);
      • out.println(“</table>”);
      • out.println(“</body> ”);
      • out.close();
      • }
    • 8. Web Request Flow Web client Listener 1 JVM Mod_auth Mod_JServ 2 3 Modules 5 4 CGI 2 Dynamic content Database