English 中文(简体)
Java Webstart vs. Java Rainbowt
原标题:Java Web Start vs. Java Applet

I m working on a Java application which I want to be available over the internet. However, some requirements put me in a difficult situation. That s why I would appreciate some input of experienced programmers. The situation is as follows:

I have a basic webhost, with

  • a mysql database
  • an open ftp-port (21)
  • an open http-port (80)

  • an open mysql-port (3306)
  • an open ssh-port (22)

现在,我想建立一个能够做到以下几点的申请(Java Webstart OR Javapurt):

  • Be available for multiple users over the internet
  • Communicate with mysql database
  • Exchange documents between local file system and webhost

现在你们看到了问题:

  • When running a Java Web Start application, it seems impossible to connect to the mysql-database because the mysql-port is closed.
  • When running a Java Applet, it seems I cannot get access to the files in the local file system.

是否有人提出这一问题?

提前感谢!

纽约总部

最佳回答

我不建议这种设想。

有了资料和网络开端,你就会向用户披露数据库用户名称和密码。 你可以混淆这些内容,但可以改变这些内容。

相反,你应创建适当的网络服务,以调解数据库与客户的联系。

问题回答

无论是网络启动还是果 Apple,都无法与数据库联系。 事实上,如果这些申请可能非常糟糕,因为这样,这些申请就不得不包含亚洲开发银行的口号,而所有能够申请的人都可以从这些口号中提取这些口号,并给你的银行造成严重破坏。 这可能是东道方不向互联网开放这一港口的原因。

为了使用该数据库,你不得不在网络厅管理某种中层网络服务。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签