In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Tomcat 5.5 Configuring MySQL Database Connection Pools [@more@]1 Environment Description
JDK 1.5
Tomcat 5.5.4
MySQL 4.0.20
MySQL JDBC 3.0.15
Commons dbcp 1.2.1
2 Preparations
JDK, Tomcat, MySQL installation process is not my focus, skip it.
Download mysql-connector-java-3.0.15-ga.zip from http://dev.mysql.com/downloads/and place mysql-connector-java-3.0.15-ga-bin.jar in jre/lib/ext and Tomcat 5.5/common/lib.
Download commons-dbcp-1.2.1.zip from http://jakarta.apache.org/commons/dbcp/and place commons-dbcp-1.2.1.jar in jre/lib/ext and Tomcat 5.5/common/lib.
3 Configuring Tomcat
In Tomcat 5.5/conf/server.xml, add:
。
In Tomcat 5.5/webapps/test/WEB-INF/web.xml add:
MySQL Connection Pool
JDBC for MySQL
javax.sql.DataSource
Container
In Tomcat 5.5/webapps/test/META-INF/context.xml:
4 test
Restart the Tomcat server and write test.jsp:
"http://www.w3.org/TR/REC-html40/strict.dtd";>
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.