jamie_lynn
asked on
What is the best way to call Java apis from CPython?
Hi,
My CPython client needs to connect and get data from a Java server which returns only Java objects. There is a Java api to get this data.
What is the best way to call Java apis from CPython and convert the Java objects to CPython objects?
Thanks
Jamie
My CPython client needs to connect and get data from a Java server which returns only Java objects. There is a Java api to get this data.
What is the best way to call Java apis from CPython and convert the Java objects to CPython objects?
Thanks
Jamie
Jython link: http://www.jython.org/
ASKER
Hi Richard,
I am pretty committed since I have a lot of apis from C libraries that I currently use.
Can Jython call C functions without having a JNI bridge?
Thanks
Jamie
I am pretty committed since I have a lot of apis from C libraries that I currently use.
Can Jython call C functions without having a JNI bridge?
Thanks
Jamie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Run Java as a separate process and use RPC to communicate.
ASKER
Hi Mish
That would technically work, but I don't want to do run Java as a separate process... a little too much work and maintenance. Thanks for the suggestion tho.
Thanks
Jamie
That would technically work, but I don't want to do run Java as a separate process... a little too much work and maintenance. Thanks for the suggestion tho.
Thanks
Jamie
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think people pretty much stopped trying to develop this kind of thing once Jython became established. It's really the ultimate Java/Python solution.