在单个Google App Engine项目中共同使用Java和Python [英] Java and Python Together in Single Google App Engine Project

查看:103
本文介绍了在单个Google App Engine项目中共同使用Java和Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Google App Engine上运行Java应用程序,但我想添加Python模块的SearchableModel提供的功能(当然还有搜索功能)。是否有可能在与Java代码相同的项目中运行python代码,只是在不同的版本下运行?如果不是的话,他们可能是两个单独的应用程序(当前的Java应用程序和一个新的基于Python的搜索应用程序)运行在一个数据存储上,但我认为这是不可能的。

解决方案

可以在不同版本上运行Python和Java应用程序。

stackoverflow.com/questions/1085898/choosing-java-vs-python-on-google-app-engine/1087878#1087878\">来自:


最后但并非最不重要的一点是:请记住,您可以使用不同版本的应用程序(使用相同的数据存储),其中一些使用Python运行时实现,一些使用Java运行时实现,与具有显式URL的默认/活动不同。



I currently have a Java application running on Google App Engine, but I want to add the features that the Python module's SearchableModel provides (for search features of course). Is it possible to run python code in the same project as Java code, just under a different version? If not, could they be two separate apps (current Java app and a new Python-based search app) running against a single datastore, but I don't think that is possible.

解决方案

It is possible to run Python and Java applications on different versions.

From:

Last but not least: remember that you can have different version of your app (using the same datastore) some of which are implemented with the Python runtime, some with the Java runtime, and you can access versions that differ from the "default/active" one with explicit URLs.

这篇关于在单个Google App Engine项目中共同使用Java和Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆