Skip site navigation (1) Skip section navigation (2)

Re: jdbc, applet -> servlet;corba ??

From: Peter Mount <peter(at)retep(dot)org(dot)uk>
To: moenk S <moenk_2000(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: jdbc, applet -> servlet;corba ??
Date: 2000-06-05 10:48:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
On Sun, 4 Jun 2000, moenk S wrote:

> Hi all,.....
> I'm in RedHat 6.0, Postgresql 7 and Java 1.2. I want to make
> client-server communication, to access the data.
> Following the java jdbc turotial, I can access the data from applet by
> appletviewer. But when I try to running applet from browser, there
> wass an error : No Driver Suitable.  Give me suggestions please.

How are you defining the applet in the web page? You may need to merge
your applet's classes and the contents of the postgresql.jar file into a
single .jar file, and refer to it on your web page.

> Also I have question, what the different between servlet and corba ?

Servlet's are small applications written in Java, which run on the server
side of an application (not just the web).

Corba is a standard way of writing an object that can be accessible from
any platform (which has an Orb). Java2 has a simple orb, so you can have
both sides of a Corba connection running it. Check the example under
src/interfaces/jdbc/example/corba in the source.

> And which one better between the combinations like follow :
> DB server -> JDBC -> Applet -> Servlet 
> or
> DB Server -> JDBC -> Apllet -> CORBA  ...??

No, Applet's are the top level, visible to the user in a browser.

I'd say:

DB Server -> JDBC -> Servlet -> Applet


DB Server -> JDBC -> Applet

The first is better, because the JDBC code is kept on the server. Only the
applet is downloaded to the browser. The second is more common, but every
use of the applet means that the jdbc driver is also downloaded, which on
average is many time larger than the applet it'self.

You could place the following between the above two:

DB Server -> JDBC -> Servlet -- Corba --> Applet

But corba is only part of Java2, and not all browsers support it yet.


       Peter T Mount peter(at)retep(dot)org(dot)uk
      Main Homepage:
PostgreSQL JDBC Faq:
 Java PDF Generator:

In response to

pgsql-interfaces by date

Next:From: Sondaar, RoelofDate: 2000-06-05 11:45:37
Subject: RE: PostgreSQL JDBC error: Missing or erroneous pg_hba.conf file
Previous:From: Peter MountDate: 2000-06-05 10:34:44
Subject: Re: JDBC setTimestamp/getTimestamp

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group