Search code examples
javapythongoogle-app-enginegae-eclipse-plugin

GAE: Python and Java services together under same App ID


I have some Python services and I have defined handler locations for them in app.yaml

I also have Java services and I have configured web.xml.

I want them both to be under same APP ID, e.g.

So how can I accomplish this?

  • When I use GAE Java Eclipse plugin, it only uploads the Java service and deletes existing Python service.
  • When I use appcfg.py update it only uploads Python service and deletes existing Java service.

Solution

  • There is a hack: upload to different versions

    You can have one instance version in Java and the other in Python. The default one will be visible to public via http://myapp.appspot.com.

    You can access the other version (in browser or programmatically) viahttp://version.myapp.appspot.com, e.g. http://3.myapp.appspot.com

    If you wan to acces both of them via the same URL, then you will need to proxy the request or do a redirect (if your client allows it).