-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------


>In the jserv.properties file, add a line like this:
>
>    wrapper.bin.parameters=-Djdbc.driver=postgresql.Driver
>
>You will also find that most connection pool implementations let you specify the name
>of the JDBC driver class as an initialization parameter, so you can maintain source
>code independence from a particular driver.

Loved to say it worked, but it didn't ... the connection object comes back
null from the DriverManager call.

I can always put the "postgresql.Driver" line into the configuration file
as a parameter, but I'd rather not. I need to be able to ftp the .jar file
to a host , and know that their setup will work, regardless of database
or set up. Which is why I want it all done through InitParameter's

One of the things to watch out for is that if I do use

        Class.forName("postgresql.Driver");

and then take it out without restarting the server, then the class is still loaded
in the JVM memory and will still work. The classpath is fine (must be for it to 
work) so I don't know what esle there is, ps -fu nobody gives

# ps -fu nobody
     UID   PID  PPID  C    STIME TTY      TIME CMD
  nobody 12707 12700  0 15:23:32 ?        0:04 /usr/bin/../java/bin/../bin/sparc
/native_threads/java -Djdbc.driver=postgresql.
  nobody 12738 12699  0 15:24:39 ?        0:00 /usr/local/apache/bin/httpd
  nobody 12701 12699  0 15:23:29 ?        0:00 /usr/local/apache/bin/httpd
  nobody 12700 12699  0 15:23:29 ?        0:00 /usr/local/apache/bin/httpd
  nobody 12702 12699  0 15:23:29 ?        0:00 /usr/local/apache/bin/httpd
  nobody 12703 12699  0 15:23:29 ?        0:00 /usr/local/apache/bin/httpd

which is interesting that the full java line doesn't appear, but I think that's just
ps truncating the line.
----
You are the simulacrum of my dreams
 and the signifier of my desires

Mr Grumpy ... come and visit his home!
        http://www.cyber4.org/members/grumpy/index.html


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to