Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Applications : Creating an Application

Creating an Application
GUI
About this task 
The New Application wizard allows you to create an application, specify its distribution, and configure properties and substitution variables.
Procedure 
1.
Click the Applications tab.
2.
Click New New Application.
The New Application wizard displays.
3.
1.
2.
* EAR files created using a newer version of the TIBCO Adapter palette should not be deployed in environments where an older version of the TIBCO Adapter is deployed.
1.
4.
Application names cannot contain the characters \, /, :, *, ?, ", <, >,|, whitespace, %, #, &, (, ), or comma and they cannot be the same as the node name.
Application Folder - accept the default location or click Select... to choose a folder for the application.
Click Next.
5.
The number of applications deployed on each node are displayed. This helps in distributing your applications across the available nodes.
If you have multiple nodes running you can choose to deploy the application to more than one node by checking the checkbox for Advanced to fine tune the distribution.
Select nodes for an item - choose items from the composite tree on the left and drag to nodes on the right. Double-click the items to distribute it to all the nodes.
Components or bindings in logical nodes will not appear in the item lists as they can not be distributed separately from the logical node.
Distribution is cumulative. So if a component is explicitly distributed to node A and the application is distributed to node B, then the component will be distributed to both nodes A and B during deployment.
Click the link to see all the nodes to which it is distributed.
Select items for a node - choose a node from the list on the left and drop on items on the right. Double-click a node to distribute all items to the selected node.
Click the link under a node name to see all the fragments of the application distributed to the node.
Click the Clear distribution for the selected items button to delete the distribution.
Click Next.
6.
Choose a version from the Software dropdown list and click Next.
7.
Expand the tree for Owner to view and edit the displayed properties.
If Hawk monitoring is enabled for the project at design time, it is recommended that the value of the HawkEnabled property is set to true. If th value is not, the value is overridden to true. If a static value is used, it must be set to true.
Click Next.
8.
Application level Global Variables will show up as application level substitution variables. You can override the defaults by assigning values for them.
In the Local Value column, edit application substitution variable values. When you click on a cell in the value column, a picker icon appears that allows you to select existing resource instances of the correct type.
Click Next to continue.
It is recommended that you do not add or delete any substitution variables.
9.
10.
Back - navigate to any previous screen in the wizard.
Deploy - deploys the newly created application.
Save and Exit or Cancel - saves the setup information and exits the wizard.
The application is added to Applications list. Any EAR uploaded or resource templates imported in previous steps will remain.
Result 
Only the TIBCO Adapter components contained in the EAR file are displayed in the Administrator UI.
CLI
Before you begin 
The specified environment must already exist in the enterprise.
Refer to the Administration book for TIBCO ActiveMatrix Service Grid or TIBCO ActiveMatrix Service Bus for information about the command-line interface (CLI) and the required build and data files.
Procedure 
1.

<Environment xsi:type="amxdata:Environment" name="EnvName" >
<Application xsi:type="amxdata:Application" name="Adapter_EAR">
<ApplicationTemplate xsi:type="amxdata_reference:AdapterApplicationTemplate_reference"
name="AppTemplateName" version="1.0.0.201005040925" />
</Application>
</Environment>
To define the distribution of the components, specify the Application element as follows:

<Environment xsi:type="amxdata:Environment" name="EnvName" >
<Application xsi:type="amxdata:Application" name="Adapter_EAR">
<ApplicationTemplate xsi:type="amxdata_reference:AdapterApplicationTemplate_reference"
name="AppTemplateName" version="1.0.0.201005040925" />
<Component xsi:type="amxdata:Component" name="ActiveDatabaseAdapterConfiguration-1.aar" >
<Node name="Adapter-node-1" environmentName="Dev" />
<Component xsi:type="amxdata:Component" name="ActiveDatabaseAdapterConfiguration-2.aar" >
<Node name="Adapter-node-2" environmentName="Dev" />
</Application>
</Environment>
2.
<DAA xsi:type="amxdata:DAA" description="Adapter EAR Files" location="c:/Adapters/EAR_Files/PubSub.ear" />
3.
In the build file set the action attribute of the AMXAdminTask element to add and the objectSelector attribute to Environment/Application.
<AMXAdminTask action="add" objectSelector="Environment/Application" />
4.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved