PostgreSQL-JDBC correct URL - Mailing list pgsql-general

From Haroldo Stenger
Subject PostgreSQL-JDBC correct URL
Date
Msg-id 38F23BB4.1909B616@adinet.com.uy
Whole thread Raw
Responses Re: PostgreSQL-JDBC correct URL
List pgsql-general
Hello nice people,

/* I'm a GeneXus programmer (www.genexus.com), a RAD tool. They support natively
Oracle, Informix, DB2 & MS SQL Server. I'm taking steps to use and encourage use
by others, of PostgreSQL, which I thing is the most amazing DBMS out there these
days. Java is the language I chose to generate my future applications using
GeneXus.
*/

GeneXus asks me for the driver name, and for the URL of the JDBC driver. Then,
when trying to connect to the database, a Java java.lang.ClassNotFoundException
appears. I seem to be failing to tell the right name of the driver. I tried
gnu.postgres95.PGDriver, and others like this. And for the URL, I used
jdbc:postgres95:template1?user=haroldo&password=haroldo

With this template:
jdbc:driver://host:port/database?option=value&user=userid&password=password  I
wonder what 'driver' must be, if either postgres95 or postgresql or postgreSQL.

I'm using the Postgresql 6.5 JDK1.1.x JDBC driver. Does it use the same URL
format as earlier versions, i.e. postgres95 versions?

I'd like to thank in advance to Peter Mount, o whoever answers this.

--

Saludos,
Haroldo.

------------------------------
"Y con esto me despido
Sin expresar hasta cuando.
Siempre corta por lo blando
El que busca lo siguro;
Mas yo corto por lo duro,
Y ansí he de seguir cortando."

José Hernández - Martín Fierro
------------------------------

pgsql-general by date:

Previous
From: Titus Brown
Date:
Subject: [t-ishii@sra.co.jp: Re: Minor hack to support LO string searches]
Next
From: Peter Eisentraut
Date:
Subject: Re: recursive queries?