Basic setup

In this step you can download dependencies and start up a simple template application. Shell commands are provided for sh compatible shell users.

Fetch a template application

Databinder supplies basic application templates for each of its integration modules.

An alternate template comes configured to use the databinder-auth modules for user login to protected pages.

A quick way to get one of these from the command line:

curl http://databinder.net/releases/auth-ao-tmpl-1.2.0.tar.bz2 | tar xvj
cd basic

Database (non) configuration

To simplify setup and experimentation, the templates are configured for an in-memory database. Databinder requests on startup that Hibernate create any needed tables, and the in-memory database is dropped entirely when the application stops.

A commented-out MySQL configuration is also present, with a connector dependency in the Maven pom.xml.

Fire it up

The Databinder toolkit embeds a runnable Jetty web server, and the basic application template’s pom.xml file is configured to start it directly from the command line. First, run

mvn compile

to have Maven download dependencies and compile the application. Assuming that is succesful, compile and run with

mvn compile exec:java

After INFO: Ready at http://localhost:8080/basic-ao scrolls into view, open another browser window and say hello to Databinder.

Page last updated June 29, 2008. Produced with Databinder.