In AppEngine for Java, how do you get the name of the instance: e.g. instance.appspot.com
I want to get what the nam开发者_C百科e of my instance is from within the app.
THANKS
It looks like you can use SystemProperty.applicationId.get()
, see here:
http://code.google.com/appengine/docs/java/runtime.html#The_Environment
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html
精彩评论