Stopping Applications
You can stop applications from the Administrator GUI or by using the CLI. If you are using the GUI, you can choose the Stop Immediately options to have the application exit right away without cleanup.
GUI
Procedure
- Click the Applications button.
- In the Applications list, click one or more applications.
-
Choose a stop option.
The selected applications and target applications are stopped.
CLI
Procedure
-
In the data file, specify Environment
and Application elements in base format. Drivers required for the application
resource instances can be specified inside the
<Application> element in the
data.xml file.
<Environment xsi:type="amxdata:Environment" name="envName" > <Application xsi:type="amxdata:Application" name="test.app1" contact="TIBCO Inc." description="Test application with imported resource template which requires a driver feature" importResourceTemplates="true" resourceTemplatesScope="Application"> <Node name="${dev.node.name}" environmentName="${dev.envt.name}"/> <ApplicationTemplate xsi:type="amxdata_reference:ApplicationTemplate_reference" name="AppTemplate"/> <!-- Specify the resource template in the DAA and the required driver feature. --> <Driver resourceTemplateName="OracleResourceTemplate" driverFeatureName="com.tibco.tpcl.gen.oracle.jdbc.feature" driverFeatureVersion="11.2.100.001"/> </Application> </Environment>
-
In the build file, set the
action attribute of the
AMXAdminTask element to
stop, the
options attribute to
immediate and the
objectSelector attribute to
Environment/Application.
<AMXAdminTask action="stop" objectSelector="Environment/Application" />
-
Optionally, specify that the stopPreFlight operation be performed before stopping the application. The stopPreFlight operation ensures that all dependent applications are stopped before proceeding.
This is done by including the option attribute set to handleDependencies:
<AMXAdminTask action="stop" objectSelector="Environment/Application" option="handleDependencies" />
- Invoke the command-line interface on the build file.
Copyright © Cloud Software Group, Inc. All rights reserved.