Starting and stopping an application server on OS/400

Your user profile must have *JOBCTL authority to start or stop an application server.

To start an application server on OS/400, do the following:

  1. Ensure the WebSphere Application Server subsystem is started by doing the following:
    1. Start an OS/400 command session.
    2. Issue the following command:
      WRKSBS
      
    3. Ensure that the following subsystem appears in the list of running subsystems displayed:
      QEJBAS5
      
    4. If the QEJBAS5 subsystem does not appear in the list of running subsystems, you must start the subsystem before starting an application server.
  2. Start a QShell session by entering the following from an OS/400 command line:
    STRQSH
    
  3. Enter the following command:
    /QIBM/ProdData/WebAS5/Base/bin/startServer -instance WAS_instance_nameapp_server_name

    where:

    WAS_instance name
    is the name of the WebSphere Application Server instance in which you want to start the application server. The default WebSphere Application Server instance is default.

    If you want to start the application server in the default WebSphere Application Server instance, the -instance parameter is optional for the command. For example, enter the following command:

    /QIBM/ProdData/WebAS5/Base/bin/startServer instance_name
    app_server_name
    is the name of the application server you want to start.  This parameter is case-sensitive - ensure that you have the correct case in the spelling of the application server name.

    The names of application servers associated with WebSphere Commerce are as follows:

    Application Application server name
    WebSphere CommerceWC_commerce_instance_name
    WebSphere Commerce Paymentspayments_instance_name_Commerce_Payments_Server

    where commerce_instance_name is the name of the WebSphere Commerce instance and payments_instance_name is the name of the WebSphere Commerce Payments instance. The default name of the WebSphere Commerce instance is demo, so the name of the default WebSphere Commerce application server is WC_demo. The default name of the WebSphere Commerce Payments instance is wpm, so the name of the default WebSphere Commerce Payments application server is wpm_Commerce_Payments_Server.

When an application server starts successfully, the following message will be displayed:

EJB6123: Application server started.
Cause . . . . . : Application server app_server_name in Base instance WAS_instance_name has
started and is ready to accept connections on admin port port_number.

where:

app_server_name
is the name of the application server.
WAS_instance_name
is the name of the WebSphere Application Server instance in which the application server was started. The name of the default WebSphere Application Server instance is default.
port_number
is the port number for the WebSphere Application Server Administrative Console. The default port number is 9090.

If the port number in the message is 0, the application server did not start successfully.

To stop an application server in OS/400, do the following:

  1. Ensure the WebSphere Application Server subsystem is started by doing the following:
    1. Start an OS/400 command session.
    2. Issue the following command:
      WRKSBS
      
    3. Ensure that the following subsystem appears in the list of running subsystems displayed:
      QEJBAS5
      
    4. If the QEJBAS5 subsystem does not appear in the list of running subsystems, you must start the subsystem before starting an application server.
  2. Start a QShell session by entering the following from an OS/400 command line:
    STRQSH
    
  3. Enter the following command:
    /QIBM/ProdData/WebAS5/Base/bin/stopServer -instance WAS_instance_nameapp_server_name

    where:

    WAS_instance name
    is the name of the WebSphere Application Server instance in which you want to start the application server. The default WebSphere Application Server instance is default.

    If you want to stop the application server in the default WebSphere Application Server instance, the -instance parameter is optional for the command. For example, enter the following command:

    /QIBM/ProdData/WebAS5/Base/bin/stopServer instance_name
    app_server_name
    is the name of the application server you want to start.  This parameter is case-sensitive - ensure that you have the correct case in the spelling of the application server name.

    The names of application servers associated with WebSphere Commerce are as follows:

    Application Application server name
    WebSphere CommerceWC_commerce_instance_name
    WebSphere Commerce Paymentspayments_instance_name_Commerce_Payments_Server

    where commerce_instance_name is the name of the WebSphere Commerce instance and payments_instance_name is the name of the WebSphere Commerce Payments instance.

    The default name of the WebSphere Commerce instance is demo, so the name of the default WebSphere Commerce application server is WC_demo.

    The default name of the WebSphere Commerce Payments instance is wpm, so the name of the default WebSphere Commerce Payments application server is wpm_Commerce_Payments_Server.

When an application server stops successfully, the following message will be displayed:

Server app_server_name stop completed.

where app_server_name is the name of the application server that was stopped.