|Part 1: Tutorial Setup|
|Part 2: Install Beet|
|Part 3: Examine the data|
|Part 4: JMX Administration|
|Part 4 Continued: Performance Statistics|
|Part 5: Log analysis with beet-util|
Part 1: Tutorial Setup
Before we get to installing beet, we first need a target Spring application. We have a simple 3-tier "hello-world" style web application built on of the following components:
- JSP 2.0 pages for the view
- Spring WebMVC 2.5.6 for the controller
- Spring 2.5.6 for the middle tier
- Hibernate 3.2 for data access
- HSQLDB 1.8 for our in-memory SQL data store
The tutorial involves installing this application in a clean Tomcat 6 server, verifying that it works, and then adding beet.
Step 1: Install Tomcat 6
Tomcat 6 is available for download here. For the purposes of this tutorial, all you need to do is download one of the Tomcat archives (at time of this writing, apache-tomcat-6.0.18.zip or .tar.gz) and unpack it. From here forward we'll refer to the directory where you unpacked the archive as [TOMCAT].
To verify your installation, start the server by executing [TOMCAT]/bin/startup.bat (Windows) or [TOMCAT]/bin/startup.sh (*nix). Point your browser at http://localhost:8080/ and you should see a default index page for your server.
Stop your server by executing [TOMCAT]/bin/shutdown before proceeding.
Step 2: Install the tutorial app
Download beet-hello.war. Copy it into the [TOMCAT]/webapps directory. Start the Tomcat server.
Verify the installation by pointing your browser at http://localhost:8080/beet-hello. You should see a page that looks like this:
Take a minute to familiarize yourself with the app (there's only one page):
- Click the 'create' button to insert some data.
- Click a few 'delete' buttons to remove some of the rows.
- Enter text into the two form fields at the bottom of the page, and click the 'update' button.
- Click the 'clear' button to clear all data.
Stop the Tomcat server before proceeding.