We're using a php front end on a java application and making the call using an http call (even though both php and java apps are on the same machine). Doing it this way is dreadfully slow - in the range of 5 to 10 seconds. as near as we can figure it's the actuall call to java that's taking so long.
Is there a better way to do this? We're going to investigate using curl to call the java app but looking for other options in case this doesn't work.