Overview

The installInteractive command of AdminApp prompts you through a series of tasks when you install an application, including the title of the task; a description of the task; and the current contents of the task that you can modify.

With the install command provide all of the information on the command line. The task name specifies each task and the information you need to update the task. One can treat the task information as a two-dimensional array of string data. For example:

-taskname {{item1a item2a item3a} {item1b item2b item3b} ...}

To derive binding information for a currently installed application, run the editInteractive command using the UNIX tee command.

 

taskInfo

Obtain information about the data needed for each task using the taskInfo command of AdminApp.

For example, there is a task called MapWebModToVH used to map Web modules to virtual hosts. To specify this task as part of the option string on the command line, enter the following:

-MapWebModToVH {{"JavaMail WebApp" mtcomps.war,WEB-INF/web.xml default_host}} 

Using the taskInfo command, you can see which of the items you can change for a task. Supply the columns for each row you modify, and the columns that you are not allowed to change must match one of the existing rows. In this case, taskInfo tells you that there are three items in each row, called webModule, uri, and virtualHost and the current column values for every row.

Obtain help while creating complex installation commands, by using a feature of the installInteractive command. Install the application interactively once and specify the updates that you need.

$AdminApp installInteractive ./appname.ear

Then look for message WASX7278I in the output log for the wsadmin tool.

Output is written to the wsadmin log files as specified in wsadmin.properties, generally:

/opt/WebSphere/AppServer/logs

One can cut and paste the data in this message into a script, and modify it.

Here is sample output, broken into multiple lines for readability. When actually executed, commands must be formatted into one long string.

WASX7278I: Generated command line: 
install ./jmsapp.ear   
{
  -BindJndiForEJBNonMessageBinding 
  {{
      deplmtest.jar 
      MailEJBObject 
      deplmtest.jar,META-INF/ejb-jar.xml 
      ejb/JMSampEJB1 
  }} 
  -MapResRefToEJB 
  {{
      deplmtest.jar 
      MailEJBObject 
      deplmtest.jar,META-INF/ejb-jar.xml mail/MailSession9 
      javax.mail.Session 
      mail/DefaultMailSessionX 
   } 
   {
      "JavaMail Sample WebApp"  
      mtcomps.war,WEB-INF/web.xml 
      mail/MailSession9 
      javax.mail.Session mail/DefaultMailSessionY 
   }
  } 
  -MapWebModToVH 
  {{
      "JavaMail Sample WebApp" 
      mtcomps.war,WEB-INF/web.xml 
      hostname 
  }} 
 -nopreCompileJSPs 
 -novalidateApp 
 -installed.ear.destination /directorypath 
 -distributeApp 
 -nouseMetaDataFromBinary
}