Nombre de la aplicación actual en Google App Engine (Java)
Frecuentes
Visto 76 veces
0
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.
2 Respuestas
4
You can get appname (without appspot.com and version) via SystemProperty.applicationId.get()
.
Respondido 28 ago 12, 14:08
1
ApiProxy.Environment.getAppId()
- see AppIdentity service https://developers.google.com/appengine/docs/java/appidentity/overview
Respondido 28 ago 12, 11:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas java google-app-engine or haz tu propia pregunta.
This will give full hostname, i.e. 2.appname.appspot.com - Pedro Knego