开发者

get the war file name in jboss

How can I get the开发者_运维问答 deployed war file name inside jboss. For example, when I am inside a servlet and I want to know the which war file name that I am in.

Thanks,

Son Nguyen


String warName = new File(getServletContext().getRealPath("/")).getName();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜