Hello,
I use Hans Bergsten connection pool for tests every day and it work fine
right out of the box (its so cool that it could be part of every java
server side installation :-)
You may want to verify
a) the content of your db.properties file
for example here is mine (in this case I use a Instantdb Database
/*
drivers=jdbc.idbDriver
logfile=C:\\SGBD\\log.txt
idb.url=jdbc:idb:C:\\SGBD\\LSE.prp
idb.maxconn=5
*/
b) the location of this file, it must be at the same level as the .class
files (so in a Tomcat install in your WEB-INF/Classes directory)
c) the name of this file. If you change the name of the properties file you
must change it also in DBConnectionManager.java because its harcoded in the
init() method
/*
private void init() {
InputStream is = getClass().getResourceAsStream("/lsedb.properties");
Properties dbProps = new Properties();
try {
[...]
*/
Hope this helps
>Hengtai Yu <[EMAIL PROTECTED]> on 02/04/2000 03:20:31 PM
>Hi,
>I try to set up connection pool using one of 2 methods:both fail!
>1. DMConnectionManager.java (written by Hans bergsten), when I test it,
message
>always is :can't get connection. Both DMConnectionManager.java and
example file
>TestServer.java pass compile. and I have put DMConnectionManager.class in
>classpath, why?
+------------------------------------------------+
| Luc Saint-Elie |
| email : [EMAIL PROTECTED] |
+------------------------------------------------+
| Java Server Side Open Source technologies |
| http://www.interpasnet.com/JSS |
| Work in progress for the new version |
| http://jss.interpasnet.com |
+------------------------------------------------+
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html