miles
miles

Reputation: 225

Java Desktop Application on Network basis

Is it possible for a Java Desktop Application coded with java Swing to use in multiple computer through networking? I have a Java Desktop Application with MySQL as database. I want to deployed it in about 3-5 computers by means of Networking or sending data depend on their IP Address. SO what are the process that i am going to do to achieve this networking. Is setting the path of the database inside my program into the server's IP Address will help? Thank you so much.

Upvotes: 1

Views: 911

Answers (2)

Kasoma
Kasoma

Reputation: 1

Try replacing the hostName in your database connections from localhost with the IP adress of the computer carrying the Database.

Upvotes: 0

Andrew Thompson
Andrew Thompson

Reputation: 168835

Is it possible for a Java Desktop Application coded with java Swing to use in multiple computer through networking?

For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & *nix.

.. sending data depend on their IP Address

If the launch file (XML with a JNLP extension) is generated dynamically, properties can be added on a client by client basis. Alternately, have the client supply that information when they 'phone home'.

Upvotes: 1

Related Questions