Java & Python Modules in Same App -- How?

125 views
Skip to first unread message

Andrei Matveev

unread,
Jan 28, 2016, 11:59:49 PM1/28/16
to Google App Engine
Hello,

I'd like to experiment w/ mixed language modules in App Engine. Currently I've got several Python based modules up & running already. I'd like to add a Java module for kicking off Dataflow jobs (I understand that in order to do this I might need to venture beyond the GAE sandbox and delve into the Managed VM terrain...). 

I couldn't find any examples or guides for building/managing Java & Python mixed module applications. Can anyone point me in the right direction? Can Python's YAML based configs be made to play nice w/ Java's appengine-web.xml configs?

Thank you in advance for taking a look!

-Andrei

PK

unread,
Jan 29, 2016, 1:11:11 AM1/29/16
to google-a...@googlegroups.com
Hi Andrei,

I have not done it but my understanding is that it is possible. You would need multiple modules. The python modules would use yaml files. The Java modules xml files. The default module would have the one dispatch.yaml file that will route to the appropriate modules. Modules share the same state in stateful services like the datastore, memcache etc. 

An example would be useful, I agree. 

--Panos
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/ae05cf06-a95f-4e91-8ea9-fd614dc071a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrei Matveev

unread,
Jan 29, 2016, 4:09:34 PM1/29/16
to Google App Engine
fyi 

This actually turned out to be really simple. I created a new subdirectory that contains the configuration & code for my Java module. Then I simply added the <module></module> tags to appengine-web.xml & ran mvn appengine:update. 
Reply all
Reply to author
Forward
0 new messages