官术网_书友最值得收藏!

Enabling RESTful Management Services

WebLogic Server 12c introduces the possibility of monitoring WebLogic Server using RESTful Web Services with new RESTful Management Services.

RESTful Management Services is disabled by default. This recipe will enable it.

Getting ready

WebLogic Administration Server must be up and running.

To enable WebLogic RESTful Management Services, you have to access the Administration Console at http://prod01.domain.local:7001/console.

How to do it...

Carry out the following steps to enable RESTful Management Services:

  1. Access the Administration Console with your web browser at http://prod01.domain.local:7001/console.
  2. Click on the Lock & Edit button to create a new change session.
  3. Navigate to Settings for Domain | General by clicking Home and then Domain or by clicking the PROD_DOMAIN link.
  4. Check the Enable RESTful Management Services checkbox, as shown in the following screenshot:
  5. Restart WebLogic Administration Server and all Servers of the domain.

How it works...

RESTful Management Services exposes WebLogic Server instances and WebLogic clusters, applications, and data sources to be monitored using the HTTP GET method and RESTful formats, such as XML, JSON, and HTML.

The following table displays the resources to be monitored and the corresponding URIs to be accessed.

Note

To access the full response format of each resource, add "?format=full"at the end of the URI.

The following image illustrates a RESTful request to monitor all servers of the domain. It contains the name, state, and health of the Administration Server instance PROD_AdminServer. It also contains the WebLogic version, the machine that this server is running, open sockets, the Java version, the operational system, the Java heap size, and the Java heap in use. The PROD_Server01 and PROD_Server02 instances are down, and their state is also displayed as SHUTDOWN:

There's more...

RESTful Management Services can also be enabled through WLST.

Enabling RESTful using WLST
  1. Log in as a wls user to shell and start WLST:
    [wls@prod01]$ $WL_HOME/common/bin/wlst.sh
    
  2. Connect to the Administration Server using wlsadmin as the user, <pwd> as the password, and t3://prod01.domain.local:7001 as the server URL:
    wls:/offline>connect("wlsadmin","<pwd>","t3://prod01.domain.local:7001")
    
  3. Run the following WLST commands:
    edit()
    startEdit()
    cd('/RestfulManagementServices/PROD_DOMAIN')
    cmo.setEnabled(true)
    save()
    activate()
    exit()
    
  4. Restart WebLogic Administration Server and all servers of the domain.

See also

  • Starting the Administration Server
  • Saving and activating changes in the Administration Console
主站蜘蛛池模板: 海兴县| 南昌市| 德江县| 新津县| 平南县| 金寨县| 皋兰县| 阳信县| 博客| 宜川县| 龙岩市| 南投市| 玉山县| 泾阳县| 南靖县| 桐乡市| 达孜县| 潜山县| 罗定市| 历史| 江山市| 噶尔县| 陵水| 台安县| 东光县| 瑞安市| 法库县| 迁西县| 墨玉县| 大名县| 景泰县| 江都市| 乌苏市| 庆阳市| 冷水江市| 荥阳市| 日照市| 青浦区| 抚宁县| 巴东县| 扬州市|