passing data between java and python
It might be what you wanted to avoid.
but at the most simple way of things, using sockets / shared file with java will be the best solution.
python socket can send information and revise it from java.
On the other hand if that feel like a pain. if you use java and python at the same computer you can use a shared file, that java can read from and python can wright to.
Apologies if my question is noob. I'm running Django 1.2 with pgsql 8.4 and I'm required to run a Java program after getting the inputs from the user, does some calculations and return the results back to the user.
May I know what is the best way to pass data between the Java and Python Django, such that the above scenario are taken care of? I heard of Jython, but according to the Django docs, it requires the extension jython-Django, but currently it doesn't support django 1.2.x. Should I pass the data using stdout?
thanks people for hearing me out.