Setting background applications using wsadmin scripting

You can enable or disable a background application using scripting and the wsadmin tool.

About this task

Background applications specify whether the application must initialize fully before the server starts. The default setting is false and this indicates that server startup will not complete until the application starts. If you set the value to true, the application starts on a background thread and server startup continues without waiting for the application to start. The application may not ready for use when the application server starts.

Procedure

  1. wsadmin 스크립트 도구를 시작하십시오.
  2. Locate the application deployment object for the application. For example:
    • Using Jacl:
      set applicationDeployment [$AdminConfig getid /Deployment:adminconsole/ApplicationDeployment:/]
    • Using Jython:
      applicationDeployment = AdminConfig.getid('/Deployment:adminconsole/ApplicationDeployment:/')
    Table 1. getid command elements. Run the getid command to get an application object.
    Element Description
    set is a Jacl command
    applicationDeployment is a variable name
    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the product configuration
    getid is an AdminConfig command
    Deployment is a type
    ApplicationDeployment is a type
    adminconsole is the name of the application
  3. Enable the background application. For example:
    • Using Jacl:
      $AdminConfig modify $applicationDeployment "{backgroundApplication true}"
    • Using Jython:
      AdminConfig.modify(applicationDeployment, ['backgroundApplication', 'true'])
    Table 2. modify command elements. Run the modify command to set the backgroundApplication value.
    Element Description
    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the product configuration
    modify is an AdminConfig command
    applicationDeployment is a variable name that was set in step 1
    backgroundApplication is an attribute
    true is the value of the backgroundApplication attribute
  4. Save the configuration changes.
    다음 명령 예제를 사용하여 구성 변경사항을 저장하십시오.
    AdminConfig.save()
  5. Synchronize the node.
    AdminNodeManagement 스크립트 라이브러리에 있는 syncActiveNode 또는 syncNode 스크립트를 사용하여 구성 변경사항을 노드에 전파하십시오.
    • 다음 명령 데모에 표시된 것과 같이, syncActiveNodes 스크립트를 사용하여 변경사항을 셀 내의 각 노드에 전파하십시오.
      AdminNodeManagement.syncActiveNodes()
    • 다음 명령 데모에 표시된 것과 같이, syncNode 스크립트를 사용하여 변경사항을 특정 노드에 전파하십시오.
      AdminNodeManagement.syncNode("myNode")

주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: July 9, 2016 6:14
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_background
파일 이름:txml_background.html