开发者

Howto Get application port through MXBean

开发者 https://www.devze.com 2022-12-08 01:06 出处:网络
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

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

精彩评论

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

关注公众号