简体   繁体   中英

Finding the application name in GWT

I am successfully deploying a GWT app to Google App Engine. However, I need to set up a second test instance on the app engine, and I need certain constants to change in that second instance.

Is there a call I can make to find out what the application name is, which would let me change the constants?

It's very important that the second instance not have the same constants as the first instance, so a process of manually changing constants doesn't work too well.

For Java the app ID can apparently be retrieved with this call:

ApiProxy.Environment.getAppId()

More on Application Identity

figured out my own problem.

Call this:

com.google.appengine.api.utils.SystemProperty.applicationId.get()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM