Starting Applications

You can start applications from the GUI or by using the CLI. If the application starts successfully, the runtime state changes to Running.

GUI

Procedure

  1. Click the Applications button.
  2. In the Applications list, click one or more applications.
  3. Click the Start button.
    If there are target applications, the Application Dependencies to Start dialog displays.
  4. Check the checkboxes next to the target applications to start.
  5. Click Start.
    The target applications are started and the selected applications are started after the target applications are running. The Runtime State of the selected applications changes to Starting.
  6. Click the Refresh button until the Runtime State changes to Running.

Result

The selected applications and target applications are started.

CLI

Procedure


  1. 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>
  2. In the build file set the action attribute of the AMXAdminTask element to start and the objectSelector attribute to Environment/Application.
    <AMXAdminTask action="start" objectSelector="Environment/Application" />
  3. Invoke the command-line interface on the build file.

Result

The selected applications and target applications are started.