开发者

Can I write parts of the Google App Engine code in Java, other parts in Python?

Google App Engine supports both Python and Ja开发者_JS百科va application development.

Can I have both in the same application?


Can I run Java and Python code in the same app?

Each version of the app must specify a runtime language and it is possible to have version x of your app running Java, while version y is running Python. It would also be possible to use Jython.

Source: Google App Engine for Java FAQ


As far as I know, there are two ways:

  • Write another app in java, publish it as a web services and call it from python (but that's not what you are looking for)
  • Make a java application but write it in jython. Then your app will be written in python, it will run on JVM, and calls to java API are trivial.


Just to have an updated answer for this question,

From this answer on GAE google groups, it looks like it is possible to have different modules in different languages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜