Re: use own property file for db-connection

2004-04-12 Thread Nikola Milutinovic
Amrun wrote: Hi everyone, I'm working with Tomcat 5.0 and I'm trying to write a little webapplication. In this case I need to get the data from a database. Now I want to write my own property-file from which I can get the information about the driver, user and password. I've done this before, bu

RE: use own property file for db-connection

2004-04-12 Thread Mike Curwen
Yes, it can work, and you'd want to put the properties file in the WEB-INF/classes directory. Then your connectionfactory.jar classes will need to look for the property file/s on the classpath. Perhaps something like: InputStream input = getContextClassLoader().getResourceAsStream(fileName); Prop