How to connect to PostgreSQL DB using jdbc?

Hi .. Hi everybody, I am new to J2EE Programming..All this while I have been programming in core java and happily connected to Databases using jdbc. But now in J2EE things are quite tricky.. could anybody.. please me me out and give me some clear cut directions as to how do i go about connecting to a PostgreSQL DB while programming in J2EE?

Thanks

[362 byte] By [arijit_datta] at [2007-11-26 8:58:45]
# 1

JDBC is independent of J2EE per se.

JDBC is a spec integrated into J2SE and as such it is possible to connect to any compliant database server using the driver(s) provided by the database server vendor. Download the drivers from the PostgresSQL site and follow the instructions I posted -- using NetBeans.

If you want to some programming yourself, you can write your JDBC code in a servlet's code and then your servlet will communicate with the database.

Kedar

Message was edited by:

kedar.mhaswade

kedarmhaswade at 2007-7-6 23:00:59 > top of Java-index,Application & Integration Servers,Application Servers...