I'm still trying to figure out how to receive a response from python script to my Java file making use of Jython. I know we can use PythonInterpreter execfile to execute python scripts but does PythonInterpreter allows us to receive the respone from the script ?
I know the question is being asked many times, but I would like to know if we can do this using Jython.
Thanks in advance
asked Dec 11, 2013 at 11:33
Jitendar M
6431 gold badge10 silver badges26 bronze badges
-
I haven't done any jython, but I would expect you to be able to get the output from an interpreter launching in java. Did you try reading from the system in?Kieveli– Kieveli2013年12月11日 13:13:17 +00:00Commented Dec 11, 2013 at 13:13
-
I think you might be referring to(stackoverflow.com/questions/13861024/…, this is without using jython, that's not what i'm trying to achieveJitendar M– Jitendar M2013年12月11日 14:41:25 +00:00Commented Dec 11, 2013 at 14:41
1 Answer 1
How about communicating through web service? It keeps modules loosely coupled and gives you ability to split work between developers more easily.
answered Dec 11, 2013 at 13:10
Marcin Szymczak
11.5k5 gold badges59 silver badges65 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
Jitendar M
Using web service would do the trick, I can't disagree on that, but for a small task like (sending parameters & receiving response) , I think web service is a complicate way of achieving it.
lang-java