X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 792F1D1C976 for ; Mon, 24 Nov 2003 18:39:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 96275-02 for ; Mon, 24 Nov 2003 14:38:47 -0400 (AST) Received: from mail2.idcglobal.net (mail2.idcglobal.net [63.208.79.80]) by svr1.postgresql.org (Postfix) with ESMTP id B945DD1B531 for ; Mon, 24 Nov 2003 14:38:45 -0400 (AST) Received: from mail.jmlafferty.com [63.208.79.199] by mail2.idcglobal.net with ESMTP (SMTPD32-6.06) id AEE55D090148; Mon, 24 Nov 2003 12:33:09 -0600 Received: from DBA1 [63.208.76.4] by mail.jmlafferty.com (SMTPD32-7.07) id A0269C30122; Mon, 24 Nov 2003 12:38:30 -0600 Message-ID: <025001c3b2ba$244af820$143264c8@jmlafferty.com> From: "Glenn Wiorek" To: "Shravan" , References: <000001c3b324$8ecd0020$1984013d@Shravan> Subject: Re: How to interact with the db using java Date: Mon, 24 Nov 2003 12:38:23 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_024D_01C3B287.D9A23040" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.2 tagged_above=0.0 required=5.0 tests=HTML_30_40, REFERENCES, SMTPD_IN_RCVD X-Spam-Level: * X-Archive-Number: 200311/413 X-Sequence-Number: 11400 This is a multi-part message in MIME format. ------=_NextPart_000_024D_01C3B287.D9A23040 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable First you must have java support enabled (--with-java) when you configure= postgres for compiling. This will enable java support build the correct J= DBC drivers based on your Java SDK version. Besides reading http://jdbc.p= ostgresql.org/ as Peter pointed out, you may want to also look at the Post= greSQL developer documentation for the JDBC Interface http://www.postgresql= .org/docs/current/interactive/jdbc.html or http://candle.pha.pa.us/main/wr= itings/pgsql/sgml/jdbc.html which gives connection and programming example= s.=20 ----- Original Message -----=20 From: Shravan=20 To: pgsql-admin@postgresql.org=20 Sent: Tuesday, November 25, 2003 1:18 AM Subject: [ADMIN] How to interact with the db using java Hi all, I am a very new user of postgreSQL. It was an easy task of setting up = the server and database.But the problem I am having is to communicate with = the db using a Java application program. Can anybody tell me how to connect= to the db using JAVA. Thanks in advance, Shravan=20 ------=_NextPart_000_024D_01C3B287.D9A23040 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
First you must have java support  enabled (--with-java) = ;=20 when you configure postgres for compiling.  This will enable java supp= ort=20 build the correct JDBC drivers based on your Java SDK version.  Beside= s=20 reading  http://jdbc.postgresql.org/  = as=20 Peter pointed out, you may want to also look at the PostgreSQL develop= er=20 documentation for the JDBC Interface http:= //www.postgresql.org/docs/current/interactive/jdbc.html =20 or http://= candle.pha.pa.us/main/writings/pgsql/sgml/jdbc.html =20 which gives connection and programming examples. 
----- Original Message -----
Fro= m:=20 Shravan
Sent: Tuesday, November 25, 2003 1= :18=20 AM
Subject: [ADMIN] How to interact w= ith the=20 db using java

Hi all,
   I am a very new user of=20 postgreSQL. It was an easy task of setting up the server and databas= e.But=20 the problem I am having is to communicate with the db using a Java= =20 application program. Can anybody tell me how to connect to the db us= ing=20 JAVA.
 
Thanks in advance,
 
Shravan 
------=_NextPart_000_024D_01C3B287.D9A23040--