I have a java based application that manipulates a mysql database. I would like to integrate this particular application with an installation of moodle. Kindly let me know the procedure. I am kind ah confident with java and php as individual entities. But the question is how to integrate both?
Integrating my Java app with moodle
Simlpest efficient approach would be run a socketserver in the java code and send requests from PHP using a client socket (e.g. pjb implements most of the heavy lifting for you) . Alternatively you could expose the Java via a container as an HTTP service (e.g. using SOAP or REST) and call that from PHP.
Thrift supports both PHP and Java: