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
-
Click the Applications button.
-
In the Applications list, click one or more applications.
-
Choose a stop option.
Option Procedure Stop
Allows applications to complete processing before shutting down.
Dependencies on target product applications are checked.
Applications may take anywhere from a few seconds to an hour to stop.
-
Do one of the following:
-
Click Stop.
-
Select Stop > Stop
-
-
If there are target applications, the Application Dependencies to Stop dialog displays.
-
Select the checkboxes next to the target applications to stop.
-
Click Stop.
Components with dependencies are stopped only after the components they depend upon have stopped.
Stop immediately
Applications may take a few seconds to stop.
Applications are allowed to perform cleanup operations but not complete their current processing.
Applications are not stopped in dependency order.
Select Stop > Stop immediately The selected applications and target applications are stopped.
-
CLI
-
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.