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

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
主站蜘蛛池模板: 出国| 温宿县| 黄浦区| 台安县| 城市| 启东市| 阿克陶县| 吉安县| 伽师县| 思南县| 溧阳市| 珠海市| 木兰县| 青河县| 浦东新区| 广元市| 武威市| 甘南县| 临湘市| 长子县| 上杭县| 宁远县| 紫阳县| 四子王旗| 吉安县| 永安市| 怀远县| 枞阳县| 汤原县| 休宁县| 东海县| 灌南县| 永济市| 新巴尔虎右旗| 渝中区| 九台市| 凤阳县| 武清区| 大丰市| 宜兰县| 江口县|