简体   繁体   中英

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

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 在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM