The J2EETM Tutorial
Home
TOC
Index
PREV TOP NEXT Search
Feedback

Deployment Tool

The deploytool utility has two versions: GUI and command line. The GUI version enables you to package components and to deploy applications. If you run the deploytool script with no options, the GUI version is launched.

The GUI version includes online help information that is context sensitive. To access a help topic for a particular dialog box or tab, press F1.

The command-line version of the tool enables you to deploy and undeploy applications. To package components from the command line, use the packager tool.

Table B-2 deploytool Options 
Option
Description
-deploy
<ear-filename>
<server-name>
[<client-stub-jar>]
Deploys the J2EE application contained in the EAR file specified by <ear-filename> onto the J2EE server running on the machine specified by <server-name>. Optionally, a JAR file for a stand-alone Java application client may be created by specifying <client-stub-jar>.
-deployConnector
<rar-filename>
<server-name>
Deploys the resource adapter contained in the RAR file specified by <rar-filename> onto the J2EE server running on the machine specified by <server-name>.
-generateSQL
<ear-filename>
<server-name>
[noOverWrite]



Generates SQL statements for all entity beans with container-managed persistence. These beans are in the EAR file specified by <ear-filename> that has been deployed on the J2EE server running on the machine specified by <server-name>. If the noOverWrite option is specified, then existing SQL statements are not overwritten.
-listApps
<server-name>
Lists the J2EE applications that are deployed on the J2EE server running on the machine specified by <server-name>.
-listConnectors
<server-name>
Lists the resource adapters that are deployed on the J2EE server running on the machine specified by <server-name>.
-undeployConnector
<rar-filename>
<server-name>
Undeploys the resource adapter contained in the file specified by <rar-filename> from the J2EE server running on the machine specified by <server-name>.
-uninstall
<app-name>
<server-name>
Undeploys the J2EE application whose name is <app-name> from the J2EE server running on the machine specified by <server-name>.
-help
Displays options.
-ui
Runs the GUI version (default).

Home
TOC
Index
PREV TOP NEXT Search
Feedback