Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Reference Manual

## deploydir(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

#### NAME

deploydir– deploys an exploded format of application archive

#### SYNOPSIS

`deploydir` ––user admin_user [––passwordfile filename] [––host host_name] [––port port_number] [––secure|`–s`] [––terse=false] [––echo=false] [––interactive=true] [––help] [––virtualservers virtual_servers] [––contextroot context_root] [`––force=true`] [`––verify=false`] [`––precompilejsp=false`] [`––name component_name`] [`––uniquetablenames=true|false`] [`––dbvendorname dbvendorname`] [`––createtables=false` | `––dropandcreatetables=false`] [`––generatermistubs=false`] [`––availabilityenabled=false`] [`––target target`] dirpath

#### DESCRIPTION

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 not supported for clusters and remote server instances.

The deployed EAR or WAR applications reside on the Domain Administration Server and have a directory structure that can be used for deployment. 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.

If the `––uniquetablenames`, `––createtables`, and `––dropandcreatetables` options are not specified, the entries in the deployment descriptors are used.

This command is supported in remote mode only.

#### OPTIONS

`–u` `––user`

  The authorized domain application server administrative username.

`–w` `––password`

  The `––password` option is deprecated. Use `––passwordfile` instead.

`––passwordfile`

  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 application 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_SAVEDMASTERPASSWORD, AS_ADMIN_MQPASSWORD, AS_ADMIN_ALIASPASSWORD, and so on.

`–H` `––host`

  The machine name where the domain application server is running. The default value is localhost.

`–p` `––port`

  The port number of the domain application server listening for administration requests. The default port number for Platform Edition is 4848. The default port number for Enterprise Edition is 4849.

`–s` `––secure`

  If set to true, uses SSL/TLS to communicate with the domain application server.

`–t` `––terse`

  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.

`–e` `––echo`

  Setting to true will echo the command line statement on the standard output. Default is false.

`–I` `––interactive`

  If set to true (default), only the required password options are prompted.

`–h` `––help`

  Displays the help text for the command.

`-––virtualservers`

  Comma separated list of virtual server IDs.

`-––contextroot`

  Valid only if the archive is a web module. It is ignored for other archive types; defaults to filename without extension.

`-––force`

  Makes sure the component is forcefully (re)deployed even if the specified component has already been deployed or already exists.

`-––verify`

  If set to true, the syntax and semantics of the deployment descriptor is verified.

`-––precompilejsp`

  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`

  Name of the deployable component.

`-––uniquetablenames`

  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.

`-––dbvendorname`

  Name of the database vendor being used. Default is the corresponding entry in the `cmp-resource ()` element of the `sun-ejb-jar.xml` file. If not specified, the default is SQL92, and the DDL files to create and drop tables are generated in SQL92 format.

`-––createtables`

  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.

`-––dropandcreatetables`

  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.

`-––generatermistubs`

  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.

`-––availabilityenabled`

  If set to true, high-availability is enabled for SFSB checkpointing (and potentially passivation). .If set to false (default) all SFSB checkpointing is disabled for the application or EJB module.

`––target`

  In Enterprise Edition, specifies the target to which you are deploying. Valid values are:

  - `server`, which deploys the component to the default server instance `server` and is the default value.

  - `domain`, which deploys the component to the domain.

#### OPERANDS

dirpath

  path to the directory containing the exploded format of the deployable archive.

#### EXAMPLES

##### Example 1 Using deploydir

    asadmin> deploydir --user admin --passwordfile passwords.txt
    --host localhost --port 4848 --force=true --precompilejsp=true /home/temp/sampleApp
    Command deploydir executed successfully

Where the exploded application to be deployed is in the `/home/temp/sampleApp` directory.

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### SEE ALSO

deploy(1), undeploy(1), enable(1), disable(1), list-components(1)

J2EE SDK 1.4 Last Revised 31 Jan 2005

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

- © 2010, Oracle Corporation and/or its affiliates