Arnaud
Arnaud

Reputation: 7439

Name of Current App in Google App Engine (Java)

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

Answers (2)

Peter Knego
Peter Knego

Reputation: 80330

You can get appname (without appspot.com and version) via SystemProperty.applicationId.get().

Upvotes: 4

Tim Hoffman
Tim Hoffman

Reputation: 12986

ApiProxy.Environment.getAppId() - see AppIdentity service https://developers.google.com/appengine/docs/java/appidentity/overview

Upvotes: 1

Related Questions