How to retrieve Weblogic's Deployment test points through Weblogic Java API

限于喜欢 提交于 2020-01-12 13:57:24

问题


I'm working on a Weblogic health monitoring code base, which is based on JMX. I am trying to get the list of all deployment test points (the http addresses, as shown in the following snapshot), and see if that web address is reachable or not.

Is there a way to access the list of these test points in Weblogic's Java API? They are under [server_name] --> deployment (left menu) --> [app name] --> Testing pane, under "Deployment Tests" table.


回答1:


There is no direct method call to generate test urls. but from wlst or mbeans you can gather information about server url port and application context. and generate the url.

you can check Retrieve current server's provider URL at runtime on weblogic (non-deprecated way)

and for wlst you can check https://docs.oracle.com/cd/E24329_01/web.1211/e24490/reference.htm#WLSTC119

here is example from my local. how to find out context path here how test url looks in weblogic admin



来源:https://stackoverflow.com/questions/52376715/how-to-retrieve-weblogics-deployment-test-points-through-weblogic-java-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!