开发者

Howto Get application port through MXBean

given开发者_如何学Python a application: http://localhost:8080/myapp/

is it possible to enquire JVM through MBean/MXBean in which port the current application code is accepting requests? and also the appcontext (myapp)?


Ok. I answer it :)

Since Application Server MXBEans are plataform dependent - each vendor export the AS features they want - my solution was to capture this information in the traditional way, through servlet request.

that's it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜