Start and stop applications with wsadmin

You can use wsadmin to start and stop applications in your application server.

Start applications with wsadmin

To start an application with wsadmin, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE51/ASE/bin
  3. Start wsadmin.

  4. At the wsadmin prompt, run this command to identify the application manager MBean for the server where the application resides and assign it the appManager variable:

    set appManager [$AdminControl queryNames type=ApplicationManager,*]

    This command returns the application manager MBean.

  5. Run this command to start the application:

    $AdminControl invoke $appManager startApplication myApp

    where myApp is the name of the application that you want to start.

Stop applications with wsadmin

To stop applications with wsadmin, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE51/ASE/bin
  3. Start wsadmin.

  4. At the wsadmin prompt, run this command to identify the application manager MBean for the server where the application resides, and assign it to the appManager variable:

    set appManager [$AdminControl queryNames type=ApplicationManager,*]

    This command returns the application manager MBean.

  5. You can stop a single application or stop all of the applications that are running in your application server.