Received: from pablo.total.net (pablo.total.net [205.236.175.128]) by hub.org (8.8.8/8.7.5) with ESMTP id LAA02322 for ; Thu, 9 Jul 1998 11:24:01 -0400 (EDT) Received: from yggdrasil (ppp-51x2-0247.mtl.total.net [207.139.151.157]) by pablo.total.net (8.8.7/8.8.5) with SMTP id LAA04398 for ; Thu, 9 Jul 1998 11:23:59 -0400 (EDT) Message-Id: <4.0.1.19980709111313.00e26920@pop.total.net> X-Sender: ajackson@pop.total.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0.1 Date: Thu, 09 Jul 1998 11:25:17 -0400 To: pgsql-interfaces@postgreSQL.org From: "Andrew R. Jackson" Subject: Re: [INTERFACES] a JDBC applet In-Reply-To: <35A4D860.2B8E21D8@iutsoph.unice.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 04:49 PM 09/07/98 +0200, Cyril FERRAND wrote: > I look for an example of a Java applet to communicate with a >postgresql base via JBDC. Because I have a lot of pb with my own one. >A example like basic.java example is ok. I have a general question related to this connecting to the DB via applet: would this require the applet user's domain to be in the pg_hba.conf file? I couldn't successfully run basic.java (one of the examples) locally here and have it connect to Postgres at school without doing this first. If one wants an applet that can run anywhere to have access, then you'd have to set up Postgres not to only accept connections from certain domains, but all domains, right? I could be way off here since I am a lowly Postgres *user*, and most docs/discussion speak to people who have Postgres admin/config abilities, which is unfortunate. Anyway, my approach to the applet-Postgres issue is a client-server one. Applets are clients that connect to a server running on the same machine running the Postgres stuff which mediates the database connection. This will keep the sysadmin people happy :) At least at my school... Andrew