Setting development mode for server objects using scripting

You can use scripting and the wsadmin tool to configure development mode for server objects.

Before you begin

Before starting this task, the wsadmin tool must be running. See the topic about starting the wsadmin scripting client using wsadmin scripting for more information.

About this task

Perform the following steps to set the development mode for a server object:

Procedure

  1. Locate the server object. The following example selects the first server found:
    • Using Jacl:
      set server [$AdminConfig getid /Server:server1/]
    • Using Jython:
      server = AdminConfig.getid('/Server:server1/')
  2. Enable development mode:
    • Using Jacl:
      $AdminConfig modify $server "{developmentMode true}"
    • Using Jython:
      AdminConfig.modify(server, [['developmentMode', 'true']])
  3. Save the configuration changes. See the topic about saving configuration changes with the wsadmin tool for more information.
  4. In a network deployment environment only, synchronize the node. See the topic about synchronizing nodes using the wsadmin scripting tool for more information.