Page 566
Figure 21.9.
Example of PL/SQL
stored procedure that
generates dynamic
HTML.
In May 1997, Oracle Corporation announced the production release of Developer/2000 for the Web, release 1.4W. At the time this book was published, a trial version of Developer/2000 for the Web could be downloaded from the Oracle Web site. However, be warnedthe Developer/2000 release 1.4W download file is 159MB and expands to almost 500MB. This section will focus on the Windows NT version of Developer/2000 for the Web (it is also available for the Solaris operating system).
Developer/2000 for the Web supports the deployment of Oracle Forms and Oracle Reports applications as Web applications. Developer/2000 requires the use of either the Oracle Web Server 2.1 or the Oracle Web Application Server 3.0. Developer/2000 for the Web includes a new component, the Forms Server Listener, that must reside on the same server with the Web Application Server. Let's take a closer look at the architecture in Figure 21.10.
Figure 21.10.
Architecture Support-
ing Developer/2000
for the Web.
Page 567
As you can see in Figure 21.10, the architecture consists of three tiers:
The client machine only requires a Web browser that has been Java enabled (specifically, it must support the Java Development Kit 1.1.2 or higher). The user enters a URL that contains the following:
NOTE |
The current version of Developer/2000 for the Web, release 1.4W,is labeled Limited Production. This release fully supports the deployment of client/server applications written in Oracle Forms, Reports, and Graphics. However, Developer/2000 for the Web has limited production capabilities for the deployment of Web applications. Specifically, this release requires the use of a Web browser that supports the Java Development Kit (JDK) version 1.1.2 or higher; at the present time, there are no commercially available browsers that provide this support. As a result, the installation of Developer/2000 for the Web includes an appletviewer that must be used to launch the Java applet that runs the Oracle Forms or Reports application. In addition, there are known restrictions and bugs involving the use of the applet viewer. Refer to the Developer/2000 for the Web Release Notes for further details. |
The application server (Solaris and Windows NT are currently supported) contains these components:
Page 568
The Forms Server Listener is responsible for reading the .FMX file referenced in the URL and downloading the necessary Java classes and applet to mimic the functionality that the form provides in a client/server environment.
Finally, the database server hosts the Oracle database that is accessed by the Forms Web application. Of course, the Oracle database could reside on the application server.
To configure Oracle Forms for the Web, you need to perform three tasks:
Let's look at the detailed steps needed to complete each task.
When you install Developer/2000 for the Web, release 1.4W, Oracle Forms 4.5.8 is also installed. For each .FMB file that you want to run as a Forms Web application, you must regenerate the .FMX file using Oracle Forms 4.5.8. If there are no errors during the generation of the .FMX file, place the .FMX file on the application server. You can place the .FMX files in any directory on the application server as long as you specify the directory path and filename in the cartridge or HTML file that users reference to run the Web application.
The Forms Server Listener must be running before a user can run an Oracle Form as a Web application. There are two ways to invoke the Forms Server Listener on Windows NT:
To verify that the Forms Server Listener is running, move the mouse so the pointer is on a blank region of the Taskbar and right-click Task Manager from the popup menu. Select the Processes tab and scroll through the list of processes. If the Forms Server Listener is running, you will see a process named f45srv32.exe in the list.
To make the applet viewer available on the client machine, you will need to install JDK 1.1.2 which is available on the Developer/2000 for the Web CD-ROM. By default, JDK 1.1.2 will be installed beneath the Oracle home directory as JDK1.1.
Page 569
You should also set two system variables:
To run the applet viewer, you will need to open a DOS window on the client machine.
If you or your organization are already using Developer/2000 to build client/server applications, Developer/2000 for the Web offers a direct path to deploying your Oracle Forms and Reports applications as Web applications (subject to the caveats discussed in the previous note). On the positive side, Developer/2000 for the Web enables you to avoid the burden of coding a Java applet that has the equivalent functionality as your Forms or Reports application. On the other hand, with Developer/2000 for the Web, you have little control over the Java code that is generated; it may be quite difficult to integrate a Forms application with other Java applets. However, if you aren't currently using Developer/2000 and have no plans to begin using it, there are other alternatives available to you:
Let's look at the advantages and disadvantages of these alternatives.
Oracle's Web Application Server includes several packages, including htp and htf, which you can use to construct a Web application. There are several advantages to this approach: