InfoCenter Home > 6.6.0.6: Installing applications with the application installer command lineThe application installer, otherwise known as "SEAppInstall," is a tool for installing an application into a server configuration file and preparing this application to run within an application server.
The application installer accomplishes the following:
Invoking the SE application installerTo invoke the SE application installer:
Understanding SE application installer syntax and parametersAt the time of this writing, the tool displays the following information when invoked without parameters: IBM WebSphere Application Server Release 4, AEs J2EE Application Installation Tool, Version 1.0 Copyright IBM Corp., 1997-2001 Required Operation Missing: You must specify either -install, -uninstall, -export, -list, -extractDDL, or -validate Usage: Use one of the following commands java com.ibm.websphere.install.se.SEApplicationInstaller -install <ear file or directory> [-configFile <server configuration file>] [-expandDir <directory in which to expand ear>] [-nodeName <name of node>] [-serverName <name of server>] [-ejbdeploy <TRUE | false>] [-dbType <database type number>] [-schemaName <table schema name>] [-precompileJsp <TRUE | false>] [-validate <app | server | both | NONE>] [-denyAll <TRUE | false>] [-interactive {TRUE | false}] If you selected "-interactive false", you will not be asked any questions and you will not be able to specify binding data java com.ibm.websphere.install.se.SEApplicationInstaller -uninstall <application name> [-delete <true | false>] [-configFile <server configuration file>] [-nodeName <name of node>] [-serverName <name of server>] java com.ibm.websphere.install.se.SEApplicationInstaller -export <application name> [-configFile <server configuration file>] -outputFile <name of the ear file to create> java com.ibm.websphere.install.se.SEApplicationInstaller -list <apps | wars | ejbjars | all> [-configFile <server configuration file>] java com.ibm.websphere.install.se.SEApplicationInstaller -extractDDL <application name> [-DDLPrefix <Prefix to apply to front of all DDL file names>] [-configFile <server configuration file>] java com.ibm.websphere.install.se.SEApplicationInstaller -validate <app | server | both | NONE> [-ear <ear file>] [-configFile <server configuration file>] If you specify "-validate app" or "-validate both", you must include the "-ear" option. If you specify "-validate server" or "-validate both", the "-configFile" option is optional. You can also use the following syntax to execute the command: "java -jar SEAppInstall.jar" instead of "java com.ibm.websphere.install.se.SEApplicationInstaller" Installing an application into a serverThe -install option takes an EAR file, or expanded directory containing the EAR file contents and configures this file within a server configuration file specified via the optional -configFile parameter. If the -configFile parameter is not specified, the default is product_installation_root/config/server-cfg.xml. The optional parameters for this file include:
The process of installing an application updates the server configuration file with the application, and installs the EJB JARs within the EJB container and the WARs within the Web Container. The installation process also expands the application under the expandDir location. The expanded directory is named the same as the installed application, but in directory format. There is also binding information under the appropriate META-INF and WEB-INF directories, within the appropriate modules of the application. For example (on a single line): seappinstall -install c:\exportedApps\sampleApp.ear -configFile c:\websphere\appserver\config\server-cfg.xml -interactive false This command installs the sampleApp.ear file into the appropriate server configuration file. Uninstalling an application from a server
The -uninstall option takes an EAR file and removes it within a server config file, specified via the optional -configFile parameter. Note that the location of the installed application in the expanded directory is not removed and contains two optional parameters, unless you specify the -delete true option:
The process of uninstalling an application updates the server configuration file removing the application. This process removes the module references on the EJB and Web Containers. For example (on a single line): seappinstall -uninstall sampleApp -configFile c:\websphere\appserver\config\server-cfg.xmluninstalls the sampleApp application from the appropriate server configuration file. Exporting an installed application containing configuration informationThe parameters for seappinstall include:
Validating configuration informationThe -validation option validates the bindings and extensions in an enterprise application (EAR) and, optionally, the configuration in the application server configuration file. It is not required that this application already be installed, or in its expanded form. The -configFile parameter is optional. If not specified, the product_installation_root/config/server-cfg.xml server configuration file is used. For example: seappinstall -validate both -ear c:\websphere\appserver\installableApps\sampleApp.ear |
| ||
|