+

Search Tips   |   Advanced Search

 

Set development mode for server objects using scripting

 

You can use scripting and the wsadmin tool to configure development mode for server objects. Before starting this task, the wsadmin tool must be running. See the Start the wsadmin scripting client article for more information.

 

Overview

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:

    • Use Jacl:

      set server [$AdminConfig getid /Server:server1/]
      

    • Use Jython:

      server = AdminConfig.getid('/Server:server1/')
      

  2. Enable development mode:

    • Use Jacl:

      $AdminConfig modify $server "{developmentMode true}"
      

    • Use Jython:

      AdminConfig.modify(server, [['developmentMode', 'true']])
      

  3. Save the configuration changes. See the Saving configuration changes with the wsadmin tool article for more information.

  4. In a network deployment environment only, synchronize the node. See the Synchronizing nodes with the wsadmin tool article for more information.



Use the AdminConfig object for scripted administration

 

Related Reference


Commands for the AdminConfig object