title: How to integrate programs written in different programming languages?
body: <p>I have two developers in my team. One will develop a Python application, the other will develop a Java application. The Java app generates a boolean value which is used by the Python app.</p>
  
  <p>How can I integrate these applications? I have thought about using:</p>
  
  <ul>
  <li>Return codes: Python app calls the Java app, then the Java app uses
  the return code to inform the boolean value. </li>
  <li>Sockets: Connect both
  applications through sockets and exchange information. I think this
  is overkill. </li>
  <li>Files: The Java app does its stuff, writes the output to
  a file, then the Python app reads this file and retrieves the boolean
  value it needs.</li>
  </ul>
  
  <p>Any other suggestions? I'm not just looking for a solution, I'm also considering here aspects such as code organization and "beauty" of the overall solution.</p>
  
  <hr>
  
  <p>Edit 1:
  Thank you @user2387370 for the recommendation of using Jython, but I can't use it.</p>
  
  <hr>
  
  <p>Edit 2: Thank you @RickyA, I'll have a look at messaging systems (such as zeromq, which you mentioned).</p>