java - How to integrate programs written in different programming languages? -
i have 2 developers in team. 1 develop python application, other develop java application. java app generates boolean value used python app.
how can integrate these applications? have thought using:
- return codes: python app calls java app, java app uses return code inform boolean value.
- sockets: connect both applications through sockets , exchange information. think overkill.
- files: java app stuff, writes output file, python app reads file , retrieves boolean value needs.
any other suggestions? i'm not looking solution, i'm considering here aspects such code organization , "beauty" of overall solution.
edit 1: thank @user2387370 recommendation of using jython, can't use it.
edit 2: thank @rickya, i'll have @ messaging systems (such zeromq, mentioned).
use messaging system zeromq. has libraries both languages , allows integrate them seamlessly.
your proposed options clunky interoperability. (filelocks, dead sockets, dead processes etc..)
also this page lists tools can used pyton/java interop. can't recommend 1 since used none.
Comments
Post a Comment