The following example updates the Java EE application foo.ear, which is deployed to the default domain, domain1.
<sun-appserv-update file="foo.ear"/>