spring - How to execute a single instace of my java destop application? -
I'm new to JavaFX, I made a client-server application. My main problem is that I have the same example by the machine I want to execute
I'm using Spring Framework, maybe it could help me.
Anyone can help me << p>
I did not understand at all, so I answer and hope to kill the point.
If you want your client to come only on the application / machine:
- Tie a predefined port on the local host >
To make a file (when this program is present, if the probe is present, when the probe is started on startup)> However, if you exactly 1 example / machine required The server-side will be implemented, something like this, although this is an example / machine (the program is inside VM C may be) may be only a "session with the server to make sure the IP does not ensure.
Hope you find what you are looking for.
This (references after the comments): Another option would be:
User logs in (this connection allows 1 to call). The server can refuse more user login while connection 1 is alive.
Comments
Post a Comment