Hi,
Sorry if this mail sounds repetitive. This is regarding your connection
pooling program.
I have two problems
one is When I try to compile the servet calling the DBConnectionMAnager
class and crreating an instance of it, it gives the message cannot find
DBConnectionManager.class.
However I over come this by compiling both as a single program. It
succeeded. But on placing it in the servlet directory of the JWS and placing
the db.properties in the class path, I get the message, file not found(404)
when I try to invoke it thru the browser. What can be the reason? I would be
of great help if you can give a detailed answer.
Thanks for ur time
Boby Thomas
----- Original Message -----
From: Hans Bergsten <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 06, 2000 1:45 AM
Subject: Re: help: connection pool
> "boby on nestinfotech.com" wrote:
> >
> > Hi,
> > Sorry this mail does not come with an answer, but an addon question ie
how
> > do you create the properties file(cantaining the URL, uid, password
etc.) in
> > Hans bergsten's method of connection pooling?
>
> I believe this is described in the article, but here it goes.
>
> The db.properties file is a regular text file, with name=value pairs. An
> example is:
>
> drivers=sun.jdbc.odbc.JdbcOdbcDriver jdbc.idbDriver
> logfile=D:\\user\\src\\java\\DBConnectionManager\\log.txt
>
> idb.url=jdbc:idb:c:\\local\\javawebserver1.1\\db\\db.prp
> idb.maxconn=2
>
> access.url=jdbc:odbc:demo
> access.user=demo
> access.password=demopw
>
> With one pool configuration ("idb") for an InstantDB database and another
("access")
> for a database accessed through the JDBC-ODBC Bridge driver (such as MS
Access).
>
> The pool described in the article uses
java.lang.Class.getResourceAsStream() to
> locate and read this file. This means the file must be located in the
classpath
> for the server.
>
> If I missed something, and you have a more specific question, please email
me
> directly.
>
> Hans
> --
> Hans Bergsten [EMAIL PROTECTED]
> Gefion Software http://www.gefionsoftware.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
___________________________________________________________________________
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