Give Apache Geronimo a Lift

From: IBM developerWorks Worldwide  read times: 215


Provided by yangyi at 2008-07-27 20:02:19


Level: Intermediate

Michael Galpin (mike.sr@gmail.com), Developer, eBay

22 Jul 2008

Lift is a new Web application framework. It is a highly scalable framework built on the Scala programming language. It is the perfect partner for a highly scalable application server, such as Apache Geronimo, especially since Scala compiles to byte code just like the Java™ language and leverages the Java platform. In this article, you will learn how to create a Web application using Lift and deploy it to Geronimo.

The Lift Web application framework requires Scala, and Scala depends on a Java Development Kit, so you need that, too. Here is the software used in writing this article.

Java Development Toolkit
You need JDK V1.5 or higher for Scala. We used Java V1.5.0_13. You can also use the IBM Java 2 Platform.
Scala
We used Scala V2.6.1 According to the Scala Web site, the Scala software distribution is best installed on a Unix® or Windows® system. It requires V1.4 or later of the Java 2 Runtime Environment (e.g., JRE from Sun Microsystems or JRE from IBM®).
Apache Maven
Lift relies on Apache Maven for setting up projects, testing code, etc. You need Apache Maven V2.0.7 or later, and in this article, we used V2.0.9.
Apache Geronimo
Lift works best with Jetty, so we used Apache Geronimo V2.1.1 with Jetty.
A database
Lift uses an embedded Apache Derby database by default, but you can also use MySQL or Postgres.

Lift is written in Scala, but we won't assume too much knowledge of Scala. Familiarity with the Java language and Java Web programming is needed. Finally, familiarity with Maven will also be useful, as Lift makes heavy use of it.

......

Please access the below link to view the full content.

Original link: http://www.ibm.com/developerwork...