Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Java and Python coexist in the same app?

I need to have a Java instance fetching data directly from the Python's instance datastore. I don't know if that's possible at all. Is the datastore transparent/unique, or each instance (if they can indeed coexist) has its separate datastore? Suming it up: how can a Java app fetch data from the datastore of a Python app, and vice-versa?

like image 933
Jorge Guberte Avatar asked Dec 08 '22 00:12

Jorge Guberte


1 Answers

Different versions of an app share a datastore, and AFAIK you can still have a Java version of your app, and Python version, at the same time. It used to be a necessary hack to use features that were implemented in Python but not (yet) in Java, and quite possibly still is.

Of course only one of those versions can be the default, but other versions are accessible.

like image 77
Steve Jessop Avatar answered Dec 09 '22 14:12

Steve Jessop