0

I have created a GUI-DB Swing application1 in Netbeans using MySQL as the database. Now I want to deploy the application and distribute it as jar files over a LAN. The problem is that when a user modifies his table in one jar file, the corresponding tables in ALL the jar files distributed over the LAN should also be modified.

How can I do this? How to automatically update all the databases in a jar file when one database is changed?

Update

  1. It is a Swing application that uses multicasting to chat with other clients over a LAN. Now I want each client to be listen on a specific port, that is if a user wants to send message to a particular client only that client will get the chat message using multicasting. To do this I have a login form that asks the client username.

    Upon entry, the name and a random multicast IP is assigned to that client which is stored in a MySQL database. Other clients can chat with the client using the port.
  2. As an alternative to repackaging Jar files, how do I phone home to the DB?
4

1 回答 1

2

为什么单个 DB 分布在整个 LAN,如果您将 DB 安装在单个节点上并使分布在 LAN 上的所有应用程序(您的 Swing 应用程序)连接到您的 DB 所在的节点,这不是一个坏主意。

于 2013-01-26T14:24:43.113 回答