Use wsadmin to install applications

Use wsadmin to install applications on an application server or an application server cluster. For more information about wsadmin, see The wsadmin administrative tool.

Install an application on an application server

To install an application on an application server, follow these steps:

  1. Run the wsadmin tool.

  2. Run one of the following commands:

    • The install command for the AdminApp object uses the EAR file and the command option information to install the application. In this example, /home/myApps/app1.ear is the fully qualified path of the application that you want to install, and serv2 is the name of the application server on which the application is installed.

      $AdminApp install /home/myApps/app1.ear {-server serv2}
    • The installInteractive command prompts you for information during the installation. In this example, /home/myApps/app1.ear is the fully qualified path of the application that you want to install.

      $AdminApp installInteractive /home/myApps/app1.ear

  3. Run the following command to save the configuration changes:

    $AdminConfig save

Install an application on a cluster

If you are using WebSphere Application Server Network Deployment, you can follow these steps to install the application on a cluster:

  1. Run the wsadmin tool.

  2. Run the install command. In this example, /home/myApps/app1.ear is the fully qualified path of the application that you want to install, and cluster1 is the name of the application server cluster on which the application is installed.

    $AdminApp install /home/myApps/app1.ear {-cluster cluster1}
  3. Run the following command to save the configuration changes:

    $AdminConfig save