Reputation: 7439
Using the Google App Engine Java API, is there a way to access the name of the currently running application i.e. the application name specified in your appengine-web.xml
file ?
Thanks in advance.
Upvotes: 0
Views: 83
Reputation: 80330
You can get appname (without appspot.com and version) via SystemProperty.applicationId.get()
.
Upvotes: 4
Reputation: 12986
ApiProxy.Environment.getAppId()
- see AppIdentity service https://developers.google.com/appengine/docs/java/appidentity/overview
Upvotes: 1