Oracle8i Application Developer's Guide - XML Release 3 (8.1.7) Part Number A86030-01 |
|
Using JDeveloper to Build Oracle XML Applications, 10 of 11
This mobile application is basically a Departments database application whose main purpose is to demonstrate how Business Components for Java (BC4J) and XML can be used to develop applications which can be accessed over wireless devices.
The application consists of two main parts:
Figure 14-8 shows schematically how the mobile application works with BC4J, XSQL Servlet, XSL Stylesheets, and Oracle8i.
We first create the BC4J application. It connects to the SCOTT schema on an Oracle8i database. Figure 14-9 shows the XML file containing the metadata about the DEPT object. See "JDeveloper XML Example 1: BC4J Metadata" .
We then create JSP pages based upon this BC4J application. In the JSP pages we introduce the XML Data Generator Web Beans. Figure 14-10 shows the XSQL file which calls the JSP page to create the new department.
We create XSLT stylesheets to go with the various client devices that we are going to access our data from. In your XSQL files, you specify the list of stylesheets and the protocols they go with which basically ties the stylesheets to the client device.
Figure 14-11 shows an example code snippet of a stylesheet (indexPP.xsl) which transforms the XML data to HTML for displaying on a browser on the Palm Pilot emulator.
Figure 14-12 shows the Cell Phone Emulator running the Departments Application Client. It also shows the setup screen for the Cell Phone Emulator.
Figure 14-13 shows the Palm Pilot Emulator accessing the Departments Application via HandWeb Browser.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|