1. When accessing the database bean by connecting the pool, the connection should be turned off, otherwise the browser will stop responding when the configuration value of the Maxactive in the connection pool is reached - the paging program that re-queries per page will usually encounter this problem. 2. When developing the Bean to access the database, the method does not return ResultSet to change to ArrayList or HashMap. Because after the connection is closed, ResultSet does not exist. 3. In the JSP Servlet Bean development mode, the return value is saved in the servlet, and the return value is obtained in the JSP page in the jsp page. Tomcat4.1.30 graphics management interface configuration The data source is a global resource, which is not written directly: context initctx = new initialContext (); context ctx = (context) ITCTX.LOOKUP ("Java: comp / ENV"); // Get the connection pool object Object obj = (object) CTX.lookup ("JDBC / ORACLEDB"); // Type conversion javax.sql.datasource DS = (javax.sql.datasource) Obj; connection conn = ds.getConnection If you modify server.xml with Notepad, the location of the data source is configured correctly (