Before you start
This tutorial is for you if you're interested in developing OpenLaszlo applications to run on Apache Geronimo. In it, you deploy the OpenLaszlo development kit on Geronimo. To prove OpenLaszlo functionality, you also develop an example application, written in OpenLaszlo, that communicates with a Web service that you construct using Axis2 and a Web Services Description Language (WSDL) file. You write the core Web service using Java code, then the Web service communicates with an Apache Derby database.
You're going to write an application in OpenLaszlo and deploy it, along with the OpenLaszlo application server, on Apache Geronimo. The example application is a client that communicates with a Web service by asking questions. The Web service responds by providing a random answer supplied to it by Geronimo's built-in Derby database. Unique questions asked also get stored in the Derby database for later analysis.
You need the following tools to follow along with this tutorial:
- Apache Geronimo -- After you download the Java™ platform, download Geronimo 1.0. Select the Geronimo 1.0 with Tomcat distribution in either the .zip (Microsoft® Windows® or Linux®) or the .tar.gz (Linux) format from the Binaries section.
- OpenLaszlo -- OpenLaszlo is the new buzz word for Web-based rich UIs. This tutorial uses this language, so you need to download the absolute latest version (this tutorial uses version 3.2) of the OpenLaszlo development kit. Find it by scrolling down to the Nightly Builds section, then select the version in the Dev Kit column (currently about 50MB).
- Apache Axis2 -- In this tutorial, you build a Web service from WSDL using Axis2. Axis2 is a great way to automatically build a Web service from WSDL. Also, make sure to get the WAR distribution. Download the 0.94 Axis2 .war file and binary distributions from Apache.
- Apache Ant -- Axis2 creates a slick Ant build.xml file for building the Web service. Download Ant from Apache.
- Database -- This tutorial uses Geronimo's built-in database, Apache Derby. However, you still need to download the drivers you'll be using to connect to the database. Download the IBM Cloudscape® (IBM DB2® JDBC Universal Driver, for Cloudscape/Derby) from IBM.
- The Java platform -- Geronimo, OpenLaszlo, Axis2, and Derby require the Java platform. Java 1.4.08 or 1.4.09 is best for this tutorial. Download the Java code from Sun.
This tutorial assumes you have basic knowledge of Java syntax and coding. However, no knowledge of OpenLaszlo, Derby, Axis2, or Geronimo specifics are assumed.




