页:
[1]
| jupiterzhu | 2004-12-7 03:46 PM |
|
Tomcat5+MySQL4数据源配置问题
用Tomcat Administration登陆以后,添加了一个DataSource具体配置为:
JNDI Name: MyPool
Data Source URL: jdbc:mysql://localhost/news
JDBC Driver Class: org.gjt.mm.mysql.Driver
User Name: root
Password: 12345
Max. Active Connections: 4
Max. Idle Connections: 2
Max. Wait for Connection: 5000
Validation Query:
web.xml的配置为:
<resource-ref>
<description>DB Connection</description>
<res-ref-name>MyPool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
但是测试程序显示数据源为空!
那位会配置的指点一下? |
Powered by Discuz! Archiver 6.1.0
© 2001-2006 Comsenz Inc.
Processed in 0.01839 second(s), 2 queries |