The DBSession class
public class DBSession implements
HttpSessionBindingListener, DBConstants {
Class.forName("oracle.jdbc.driver.OracleDriver") ;
DBSession() throws SQLException {
conn = DriverManager.getConnection(url, username, password);
stat = conn.createStatement();
public void valueBound(HttpSessionBindingEvent evt) {}
public void valueUnbound(HttpSessionBindingEvent evt) {
} catch (SQLException e) {} // Not much to be done about it.