Install applications with the wsadmin tool

Overview

Steps for using the AdminApp object commands to install an application into the run time follow:

  1. Invoke the AdminApp object commands interactively, in a script, or use the wsadmin -c command from an operating system command prompt.

  2. Issue one of the following commands:

    The following command uses the EAR file and the command option information to install the application:

    Using Jacl:

    $AdminApp install c:/MyStuff/application1.ear {-server serv2}

    [V5.1 and later]Using Jython list:

    AdminApp.install('c:/MyStuff/application1.ear', ['-server' 'serv2'])

    [V5.1 and later]Using Jython string:

    AdminApp.install('c:/MyStuff/application1.ear', '[-server serv2]')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminApp is an object supporting application object management
    install is an AdminApp command
    MyStuff/application1.ear is the name of the application to install
    server is an installation option
    serv2 is the value of the server option


    The following command changes the application information by prompting you through a series of installation tasks:

    Using Jacl:

    $AdminApp installInteractive c:/MyStuff/application1.ear

    [V5.1 and later]Using Jython:

    AdminApp.installInteractive('c:/MyStuff/application1.ear')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminApp is an object allowing application objects to be managed
    installInteractive is an AdminApp command
    MyStuff/application1.ear is the name of the application to install


    In a Network Deployment environment only, the following command uses the EAR file and the command option information to install the application on a cluster:

    Using Jacl:

    $AdminApp install c:/MyStuff/application1.ear {-cluster cluster1}

    [V5.1 and later]Using Jython list:

    AdminApp.install('c:/MyStuff/application1.ear', ['-cluster' 'cluster1'])

    [V5.1 and later]Using Jython string:

    AdminApp.install('c:/MyStuff/application1.ear', '[-cluster cluster1]')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminApp is an object allowing application objects to be managed
    install is an AdminApp command
    MyStuff/application1.ear is the name of the application to install
    cluster is an installation option
    cluster1 is the value of the server option


  3. Save the configuration changes with the following command:

    Using Jacl:

    $AdminConfig save

    [V5.1 and later]Using Jython:

    AdminConfig.save()

    Use the reset command of the AdminConfig object to undo changes that you made to your workspace since your last save.


Related reference
Example: Identifying supported tasks and options for an Enterprise Archive file
Example: Obtaining task information while installing applications
Example: Listing the modules in an installed application