Deploys the exploded format of the application archives present under the directory provided as the command operand.
Directory deployment is for advanced developers only. Do not use it in production environments. In production environments, use the deploy command. Directory deployment is only supported on localhost, that is, the client and server must reside on the same machine. For this reason, the only values for the ––host option are:
The value of the $HOSTNAME environment variable
The IP address of the machine
If the ––uniquetablenames, ––createtables, and ––dropandcreatetables options are not specified, the entries in the deployment descriptors are used.
The ––force option makes sure the component is forcefully (re)deployed even if the specified component has already been deployed or already exists. Set ––force to false for a first deployment. If the application with that name is running and force is set to false, the command fails.
This command is supported in remote mode only.
The authorized domain administration server administrative username.
The ––password option is deprecated. Use ––passwordfile instead.
This option replaces the –– password option. Using the ––password option on the command line or through the environment is deprecated. The ––passwordfile option specifies the name of a file containing the password entries in a specified format. The entry for the password must have the AS_ADMIN_ prefix followed by the password name in capital letters. For example, to specify the domain administration server password, use an entry with the following format: AS_ADMIN_PASSWORD=password, where password is the actual administrator password. Other passwords that can be specified include AS_ADMIN_MAPPEDPASSWORD, AS_ADMIN_USERPASSWORD, AS_ADMIN_MQPASSWORD, AS_ADMIN_ALIASPASSWORD, and so on.
The machine name where the domain administration server is running. The default value is localhost.
The port number of the domain administration server listening for administration requests. The default port number for Enterprise Edition is 4849.
If set to true, uses SSL/TLS to communicate with the domain administration server.
Indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-formatted data for consumption by a script. Default is false.
Setting to true will echo the command line statement on the standard output. Default is false.
If set to true (default), only the required password options are prompted.
Displays the help text for the command.
Comma separated list of virtual server IDs.
Valid only if the archive is a web module. It is ignored for other archive types; defaults to filename without extension.
Makes sure the component is forcefully (re)deployed even if the specified component has already been deployed or already exists.
If set to true, the syntax and semantics of the deployment descriptor is verified.
By default, this option is set to false, which does not allow the JSP to pre-compile during deployment. Instead, JSPs are compiled during runtime.
Name of the deployable component.
Guarantees unique table names for all the beans and results in a hashcode added to the table names. This is useful if you have an application with case-sensitive bean names.
Specifies the name of the database vendor for which tables are created. Supported values include db2, mssql, oracle, derby, javadb, pointbase, and sybase, case-insensitive. If not specified, the value of the database-vendor-name attribute in sun-ejb-jar.xml is used. If no value is specified, a connection is made to the resource specified by the jndi-name subelement of the cmp-resource element in the sun-ejb-jar.xml file, and the database vendor name is read. If the connection cannot be established, or if the value is not recognized, SQL-92 compliance is presumed.
Creates tables during deployment for applications using unmapped CMP beans. Default is the corresponding entry in the cmp-resource element of the sun-ejb-jar.xml file. If not specified, defaults to the entries in the deployment descriptors.
Drops existing tables and creates tables during deployment for application using unmapped CMP beans. If not specified, the tables are dropped if the drop-tables-at-undeploy entry in the cmp-resource element of the sun-ejb-jar.xml file is set to true. The new tables are created if the create-tables-at-deploy entry in the cmp-resource element of the sun-ejb-jar.xml is set to true. When the component is redeployed, the tables created by the previous deployment are dropped before creating the new tables.
if set to true, static RMI-IIOP stubs are generated and put into the client.jar. If set to false (default) the stubs are not generated.
This option is available only in the Sun Java System Application Server Standard and Enterprise Edition. This option controls whether high-availability is enabled for SFSB checkpointing and potentially passivation. If set to false (default) all SFSB checkpointing is disabled for the specified application or EJB module. If set to true, the specified application or module is enabled for high-availability. Set this option to true only if high availability is configured and enabled at higher levels, such as the server and container levels.
server, which deploys the component to the default server instance server and is the default value.
domain, which deploys the component to the domain.
The exploded application to be deployed is in the /home/temp/sampleApp directory. Since the force option is set to true, if an application of that name already exists, the application is redeployed.
asadmin> deploydir --user admin --passwordfile passwords.txt --host localhost --port 4848 --force=true --precompilejsp=true /home/temp/sampleApp Command deploydir executed successfully