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.
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