🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #24266

Re: JDBC and RMI server problem

#24266
From: ����
Date: Fri, 10 Apr 1998 00:00
26 lines
1761 bytes
�� �� ivan-y. �Ĵ������ᵽ: ��
: Hi all,
: I am trying to write an java applet which will connect to a database
: (Paradox). I heard that, to do so I will need to write a rmi server which
: sits between the applet and JDBC. But I also heard that I can do it without
: a rmi server? Could you tell me which way is correct? What is the difference
: between them?
: Thank you

If you want to use RMI, the intermediate level which Javasoft recommended is 
needed. RMI schema need a java app. running on web server, a java applet
loaded from html use RMI method call the java app., and then the called method
use JDBC to access DB from web server. RMI schema separate the java applet
from DB, and disable the applet from accessing DB directly. In fact, the
applet call Remote Method in the java app. running on web server, the remote
method do DB accessing by JDBC. so it is more safe and standard.

For security, using JDBC in applet to access DB directly is restricted to 
access DB located in web server, it could sovled by using authorized applet
in future. And in intranet, a firewall in web server can protect invade,
if applet access DB server located intranet directly, the  firewall can do
nothing.

--
�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: apollo.nju.edu.]
Technical Details
Message-ID: <3O3PD5$7Ok@bbs.nju.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f6cb0,281dd3435d8a0400
X-Google-Attributes: gidf6cb0,public
From: pineapple.bbs@bbs.nju.edu.cn (����)
Subject: Re: JDBC and RMI server problem
Date: 1998/04/10
Message-ID: <3O3PD5$7Ok@bbs.nju.edu.cn>
X-Deja-AN: 342844525
X-Filename: Java/M.892203893.A
Organization: nju_bbs
Newsgroups: cn.bbs.comp.lang.java