I am getting user input from a website, though PHP, the Java program is running on my server, it takes the user input, does some magic and spits back a response in the form of an HTML page.
The problem that I am having is that I only want to start the java program once, because there is some heavy lifting that needs to be done only once. But then I want to keep the Java running and just get it to react to the input from the website.
My method to pass information from PHP is by calling a command prompt command, with the appropriate args. Now obviously I can't use args after the program started.
I need some sort of Buffer or Input Stream, something that will give me pretty much instantaneous response time.
Thank you in advance