Hi,
        I have implemented DB connection pooling based on the Hans Bergsten chapter in 
Wrox's Professional Java Server Programming using the iPlanet web server on an NT 
machine. It works fine but only when I use the following to open the db.properties 
file :

        is = new FileInputStream("..\\db.properties");

with the file placed in the root C: directory. Any attempt to use the code specified 
in the book :

        InputStream is = getClass().getResourceAsStream("/db.properties");

fails as the file is not found. I have tried putting the file in every possible 
CLASSPATH location I could think of, used a relative path and no path at all but to no 
avail.

        Does anybody have any suggestions?

Thanks,   Peter

___________________________________________________________________________
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

Reply via email to