开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜