pro_java thread: Displaying a GUI object on a host, the address of which is available at run time.
Hi,
Can somebody help me with the following?
I have a GUI which, like all Java GUIs has a long start up time. For a
real time event which needs this GUI in less than 3 seconds, starting a
fresh process at the time of request does not work.
So to handle that we can start this GUI off and keep it in the background
on the server, as and when the request comes from the client ( at which
time we know that this is the client which needs the GUI to be displayed
on its terminal ), the GUI is displayed on the client machine.
Is it possible to do somehow?
Two possible solutions that I can think of are:
1) Keep a running GUI (invisble, with the known IP for the client ) for
each client, and make it visible whenever the DISPLAY_GUI event happens.
Problem: Too many processes running which potentially might not be needed.
2) Spawn a process ( Runtime.getRuntime().exec( "Process_Name" ,
"Process_Environment_Array" ); Here the process environment array can be
passed the IP of the terminal where the GUI has to appear.
Problem: Start up time for the GUI is too much to handle the real time
event.
Please respond, with any suggestions.
Thanks