<%@page import="javax.naming.*, javax.sql.*, java.sql.*;" %> SimplePool Servlet Example <% // Get a reference to our DataSource DataSource ds = (DataSource) pageContext.findAttribute("ServletPoolDS"); // Get a connection from the pool Connection conn = ds.getConnection(); // Create a new statement Statement stmt = conn.createStatement(); // Execute the query ResultSet rst = stmt.executeQuery("SHOW TABLES"); %>

Tables