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

- Previous: Attributes
- Next: fileset

### Examples

You can deploy multiple components using a single task. This example deploys each component to the same Application Server running on a remote server.

    <sun-appserv-deploy passwordfile="${passwordfile}" host="greg.sun.com"
    	 asinstalldir="/opt/s1as8" >
    <component file="${assemble}/simpleapp.ear"/>
    <component file="${assemble}/simpleservlet.war"
    	 contextroot="test"/>
    <component file="${assemble}/simplebean.jar"/>
    </sun-appserv-deploy>

You can also undeploy multiple components using a single task. This example demonstrates using the archive files (EAR and WAR, in this case) and the component name (for the EJB component).

    <sun-appserv-undeploy passwordfile="${passwordfile}">
    <component file="${assemble}/simpleapp.ear"/
    <component file="${assemble}/simpleservlet.war"/>
    <component name="simplebean" />
    </sun-appserv-undeploy>

You can enable or disable multiple components. This example demonstrates disabling multiple components using the archive files (EAR and WAR, in this case) and the component name (for the EJB component).

    <sun-appserv-component action="disable" passwordfile="${passwordfile}">
    <component file="${assemble}/simpleapp.ear"/>
    <component file="${assemble}/simpleservlet.war"/>
    <component name="simplebean" />
    </sun-appserv-component>

- Previous: Attributes
- Next: fileset

- © 2010, Oracle Corporation and/or its affiliates