I'm currently working on a requirement for a desktop application - using Java
If for some reason the GUI crashes, it shouldn't affect the background process. Once the GUI is restarted - the execution status along with the log messages should be given back to GUI.
Desktop application is built for both windows & ubuntu 12.04.
As per my knowledge in Java, this could be achieved using Sockets. Keeping GUI as client, and executing background code in a Server.( But again i'm still trying to understand how the server stays alive if the GUI crashes, - I mean if server is started from the GUI instance @ any point, and if the GUI crashes, the server is dead too, bcz it still belongs to the same JVM instance, right ? )
The question really comes down to - how to start a server(tcp) in a new process from the gui instance. Can someone throw some light on - how to implement this requirement?