Re: psql & java

From: Peter Mount <peter(at)retep(dot)org(dot)uk>
To: Frank Bax <fbax(at)execulink(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: psql & java
Date: 2000-04-18 17:18:49
Message-ID: Pine.LNX.4.10.10004181815010.4529-100000@maidast.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces pgsql-sql

On Tue, 18 Apr 2000, Frank Bax wrote:

> I want to write a Java applet that retrieves/updates data in a psql
> database. I am running Apache and psql on a single OpenBSD server. I
> currently use PHP for dynamic pages; which has been fine up to now for
> presenting data, but I can see the day coming where some processing at the
> client side would be useful; so I want to take a closer look at java. I
> have been told by someone who knows little more than I do, that I need
> servlets to get at my data with java applets. When I go to the apache
> site, I see references to Jakarta, Tomcat, Java-Apache, JSERV and JSSI.

Ok, I've not played with servlets (had no need) but here goes (and
someone correct me if I'm wrong):

Java-Apache is the name of the project to integrate Java with Apache.

JSERV is a web server that embeds java into web pages which is processed
on the server. This is not JavaScript, but similar to PHP or ASP.

Not sure what JSSI is. I have heared of Jakarta & Tomcat, but thats all.

> But I couldn't find summaries that tell what these things are. Can someone
> tell me exactly which of the above components (and more?) I need to install
> to make this work? How do they fit together?

> Do I also need JDBC?

To access postgres from Java, you will need JDBC.

> Does JDBC require ODBC?

No. There are four types of JDBC driver, and ours is Type 4, which means
its written in pure java, and will run anywhere.

Peter

--
Peter T Mount peter(at)retep(dot)org(dot)uk
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2000-04-18 17:33:04 Re: [HACKERS] Struggles with RC1 and RPMS
Previous Message Michael S. Kelly 2000-04-18 17:11:09 Starting a new project, any opinions about using 7.0?

Browse pgsql-interfaces by date

  From Date Subject
Next Message Manuel Lemos 2000-04-18 17:39:54 Re: Connecting website with SQL-database.....
Previous Message Frank Bax 2000-04-18 16:18:50 psql & java

Browse pgsql-sql by date

  From Date Subject
Next Message Manuel Lemos 2000-04-18 17:39:54 Re: Connecting website with SQL-database.....
Previous Message Michael S. Kelly 2000-04-18 17:15:52 Outer joins