Redian新闻
>
Is that possible for Applet to access the Oracle?
avatar
Is that possible for Applet to access the Oracle?# Database - 数据库
u*d
1
The problem present by me:
some people including Vadim told me that it is not possible to use an applet
to access Oracle, since then the web server and the DBMS server need to run
on the same host. It's a situtation that I like to avoid.
Answer I get:
Regarding the applet access issue, restriction that an applet can only open
TCP connections to the server it came from. You can get around the problem
by using a servlet on the Web server side that acts as a proxy between the
applet and the Oracle
avatar
G*T
2

pls go to www.javasoft.com to search DOC

【在 u*******d 的大作中提到】
: The problem present by me:
: some people including Vadim told me that it is not possible to use an applet
: to access Oracle, since then the web server and the DBMS server need to run
: on the same host. It's a situtation that I like to avoid.
: Answer I get:
: Regarding the applet access issue, restriction that an applet can only open
: TCP connections to the server it came from. You can get around the problem
: by using a servlet on the Web server side that acts as a proxy between the
: applet and the Oracle

avatar
B*n
3
I suppose you know JDBC. If you write a stand-alone JDBC program, say A,
it will be able to connect to any Oracle server running on any host,
as long as there is a listener listening for jdbc connections, right?
Now suppose you install A along-side with a web-server. If you can
auto-magically ask the web server to invoke your JDBC program A;
inside A you can still connect to any database on any server,
right?
Now if your applet issues a request to web server in such a way that
the web-server kno

【在 u*******d 的大作中提到】
: The problem present by me:
: some people including Vadim told me that it is not possible to use an applet
: to access Oracle, since then the web server and the DBMS server need to run
: on the same host. It's a situtation that I like to avoid.
: Answer I get:
: Regarding the applet access issue, restriction that an applet can only open
: TCP connections to the server it came from. You can get around the problem
: by using a servlet on the Web server side that acts as a proxy between the
: applet and the Oracle

avatar
m*a
4

No, not that easy. If you have applet activated in your java program which
also take care of the JDBC connection. the JDBC will deal the user as
untrusted and refuse connection. The prob is sill resolvable, but use i/o
stream instead.
Yeah, I totally agree though my servlet pissing on me. These days I'm
hammering on it. My server won't install. clueless :(

【在 B*****n 的大作中提到】
: I suppose you know JDBC. If you write a stand-alone JDBC program, say A,
: it will be able to connect to any Oracle server running on any host,
: as long as there is a listener listening for jdbc connections, right?
: Now suppose you install A along-side with a web-server. If you can
: auto-magically ask the web server to invoke your JDBC program A;
: inside A you can still connect to any database on any server,
: right?
: Now if your applet issues a request to web server in such a way that
: the web-server kno

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。