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
- 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. - As an alternative to repackaging Jar files, how do I phone home to the DB?