Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: sun-appserv-jspc
- Next: Reusable Subelements

## sun-appserv-update

Enables deployed applications (EAR files) and modules (EJB JAR, RAR, and WAR files) to be updated and reloaded for fast iterative development. This task copies modified class files, XML files, and other contents of the archive files to the appropriate subdirectory of the domain-dir`/applications` directory, then touches the `.reload` file to cause dynamic reloading to occur.

This is a local task and must be executed on the same machine as the application server.

### Subelements

none

### Attributes

The following table describes attributes for the `sun-appserv-update` task.

Table 3–13 `sun-appserv-update` Attributes

Attribute | Default | Description
--- | --- | ---
`file` | none | The component to update, which must be a valid archive.
`domain` | `domain1` | (optional) The domain in which the application has been previously deployed.

### Example

The following example updates the J2EE application `foo.ear`, which is deployed to the default domain, `domain1`.

    <sun-appserv-update file="foo.ear"/>

- Previous: sun-appserv-jspc
- Next: Reusable Subelements

- © 2010, Oracle Corporation and/or its affiliates