I can't vouch for the Apache virtual hosts part, but to make it
available for all your Tomcat applications, you can put the jar in the
lib folder, along with servlet.jar. You may also need to add it to your
classpath.
You may get other offerings, but if not, there's a simple plug-and-play
JDBC
On my system I added the classpath to my mm.mysql installation directory or
/usr/local/mm.mysql.jdbc-1.2c This was enough to give me access to my
database.
Here is some sample code that you can modify to retrive data from your
database.
import java.sql.*;
import java.io.*;
public class