I have a python app and java app. The python app generates input for the java app and invokes it on the command line.
I\'m sure there must be a more elegant solution
Wrap your Java-Code in a Container (Servlet / EJB).
So you don´t loose time in the vm-startup and you go the way to more service-oriented.
For the wraping you can use jython (only make sense if you are familiar with python)
Choose a communication-protocoll in which python and java can use:
Choose something you or your partners are familliar with!