简体   繁体   English

如何在本地网络上的多个主机之间状态共享我的Java应用程序的数据更改

[英]How to state-fully share my Java application's data changes among multiple hosts on a local network

I am developing an application in Java that uses a database and I want to install it on three computers in the same network and save the changes as if I use it on a single computer. 我正在使用Java开发使用database的应用程序,我想将其安装在同一网络中的三台计算机上,并像在单台计算机上一样使用来保存更改。

I want to share my application on the network. 我想在网络上共享我的应用程序。

How to state-fully share my Java application's data-changes among the multiple hosts on a local network? 如何在局域网上的多个主机之间有状态地共享 Java应用程序的数据更改?

The first two options are : 前两个选项是:

  1. Develop a web based application and host it on one server. 开发基于Web的应用程序并将其托管在一台服务器上。 Using browser you can access from any machine from the same network even if you dont have internet connection. 使用浏览器,即使您没有Internet连接,也可以从同一网络的任何计算机上访问。

  2. Use JNLP protocol to launch your applet or desktop/swing based application from a server to any client machine. 使用JNLP协议从服务器到任何客户端计算机启动基于applet或基于桌面/ swing的应用程序。

  3. Keep the application jar if it is a desktop application in a network share folder where user can click and launch the application. 如果应用程序jar是桌面应用程序,请保留在网络共享文件夹中,用户可以在其中单击并启动该应用程序。

Note: Even if you install the jar in three computer it is possible to share data if they are connected to a single database server. 注意:即使将jar安装在三台计算机上,如果它们连接到单个数据库服务器,也可以共享数据。 But you might need to deploy the jar on each machine separately for future program update. 但是您可能需要将jar分别部署在每台计算机上,以便将来进行程序更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM