Top.Mail.Ru
September 18th, 2007 - Java developers — LiveJournal
? ?

Java developers

September 18th, 2007

01:17 pm - bobbotron - Loading postgres drivers in Tomcat 5.5

I've loaded Tomcat on my system, and would like to write some servlets that connect to a postgres database. I've downloaded the postgres java driver and know I have to resolve the driver before I can connect to it. The way I do this with standalone applications is by calling them like
java -Djdbc.drivers=org.postgresql.Driver -cp postgres.jar:otherjars... Main

I'm not sure how to load the postgres driver under tomcat. I'd imagine it's easy, but I'm not sure how to go about it!
Powered by LiveJournal.com