Re: How to connect applet to different SQL server.

From: Chris Ryan <chris(at)greatbridge(dot)com>
To: doug(at)dupreeinc(dot)com
Cc: pgsql-novice <pgsql-novice(at)postgreSQL(dot)org>
Subject: Re: How to connect applet to different SQL server.
Date: 2000-08-18 00:42:45
Message-ID: 399C8685.C5C77428@greatbridge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

The problem with Java Applets is that most browsers disallow network
connections to any machine other than the machine that the applet was
downloaded from. These issues have to do with security and while there
are legit reasons for wanting to connect to other machines the applet
standard has never made strong requirements or specifications for
telling a browser to allow such services. They are working on it.... not
that it helps you know :)

What Stuard Urban suggested in his email is a way of going about doing
it. This would work well if you had the data access objects on a single
machine and sever client servers for the applets on multiple webservers.
This would allow for updates to the query java code without propogating
the changes to several machines.

A slightly easier solution would be to just write a java application
that runs on the server and connects using jdbc to the database
directly. This does not have the benifit as the above mentioned solution
though.

Chris Ryan

doug(at)dupreeinc(dot)com wrote:
>
> Hello,
>
> This question is not exactly on topic, but I hope someone here can point
> me in the correct direction.
>
> I have a postgresql database on machine1 that works fine. I have a
> applet served by machine2 that needs to reference the postgresql
> database on machine1. how do I go about doing this? My applet works
> fine in the JBuilder Applet viewer, but it will not run on the live
> systems. I think this is because of a browser security violation, but I
> have not been able to find a work around. Please let me know any
> suggestions you may have on how to make this work.
>
> Thank you for your time!
>
> Doug T.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Ed Gomolka 2000-08-18 03:00:36 Re: How to connect applet to different SQL server.
Previous Message Stuart Urban 2000-08-18 00:12:27 Re: How to connect applet to different SQL server.