Professional Documents
Culture Documents
Tib Amx Administration Tutorials
Tib Amx Administration Tutorials
Administration Tutorials
Software Release 3.2.0
August 2012
Important Information
SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITED
ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLED
SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FOR
ANY OTHER PURPOSE.
USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF A
LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE AGREEMENT,
OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER LICENSE AGREEMENT
WHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE SOFTWARE (AND WHICH IS
DUPLICATED IN THE LICENSE FILE) OR IF THERE IS NO SUCH SOFTWARE LICENSE AGREEMENT OR
CLICKWRAP END USER LICENSE AGREEMENT, THE LICENSE(S) LOCATED IN THE LICENSE FILE(S) OF
THE SOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, AND YOUR
USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN AGREEMENT TO BE BOUND BY THE SAME.
This document contains confidential information that is subject to U.S. and international copyright laws and treaties.
No part of this document may be reproduced in any form without the written authorization of TIBCO Software
Inc.
TIBCO, The Power of Now, TIBCO ActiveMatrix, and TIBCO Enterprise Message Service are either registered
trademarks or trademarks of TIBCO Software Inc. in the United States and/or other countries.
EJB, Java EE, J2EE, and all Java-based trademarks and logos are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries.
All other product and company names and marks mentioned in this document are the property of their respective
owners and are mentioned for identification purposes only.
THIS SOFTWARE MAY BE AVAILABLE ON MULTIPLE OPERATING SYSTEMS. HOWEVER, NOT ALL
OPERATING SYSTEM PLATFORMS FOR A SPECIFIC SOFTWARE VERSION ARE RELEASED AT THE SAME
TIME. SEE THE README FILE FOR THE AVAILABILITY OF THIS SOFTWARE VERSION ON A SPECIFIC
OPERATING SYSTEM PLATFORM.
THIS DOCUMENT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES
ARE PERIODICALLYADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATED
IN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE IMPROVEMENTS AND/OR
CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS DOCUMENT AT ANY
TIME.
THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR INDIRECTLY,
BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE, INCLUDING BUT NOT LIMITED
TO ANY RELEASE NOTES AND "READ ME" FILES.
Copyright (c) 2005-2012 TIBCO Software Inc. ALL RIGHTS RESERVED.
TIBCO Software Inc. Confidential Information
TOC | 5
Contents
Preface..................................................................................................7
Changes from the Previous Release of this Guide..................................................................8
TIBCO Product Documentation................................................................................................9
Other TIBCO Product Documentation....................................................................................10
Typographical Conventions....................................................................................................11
Connecting with TIBCO Resources........................................................................................14
Chapter 1 Overview.........................................................................15
Chapter 2
Chapter 5 How to Deploy and Run the Enhanced Hello World Application.41
Complete Enhanced Hello World Prerequisites.....................................................................42
Deploy and Start the Date Manager Application....................................................................43
Create the Hello World Application.........................................................................................44
TIBCO ActiveMatrix Service Grid Administration Tutorials
6 | TOC
Chapter 7 How to Deploy and Run the Hello World Web Application.63
Complete Hello World Web Application Prerequisites............................................................64
Create the Hello World Web Application................................................................................65
Create an HTTP Connector Resource Template....................................................................66
Create and Install the HTTP Connector Resource Instance..................................................67
Distribute the Hello World Web Application............................................................................68
Deploy and Start the Hello World Web Application................................................................69
Invoke the Hello World Web Application.................................................................................70
Chapter8 HowtoDeployandRuntheContent-BasedRoutingMediationApplication.71
Create the Routing and Target Service Mediation Applications.............................................72
Create HTTP Connector Resource Templates.......................................................................73
Create and Install Resource Instances..................................................................................74
Distribute the Routing and Target Service Applications..........................................................75
Deploy and Start the Routing and Target Service Applications..............................................76
Generate the Routing WSDL File...........................................................................................77
Preface
TIBCO ActiveMatrix Service Grid is a scalable and extensible platform for developing, deploying, and
managing applications that conform to a service-oriented architecture.
8 | Preface
Preface | 9
10 | Preface
Preface | 11
Typographical Conventions
Table 1: General Typographical Conventions
Convention
Use
TIBCO_HOME
TIBCO products are installed into an installation environment. A product installed into
an installation environment does not access components in other installation environments.
Incompatible products and multiple instances of the same product must be installed into
different installation environments. An installation environment consists of the following
properties:
Name - Identifies the installation environment. The name is appended to the name of
Windows services created by the installer and is a component of the path to the product
shortcut in the Windows Start > All Programs menu. This name is referenced in
documentation as ENV_NAME.
Path - The folder into which the product is installed. This folder is referenced in
documentation as TIBCO_HOME.
ENV_NAME
CONFIG_HOME
The folder that stores configuration data generated by TIBCO products. Configuration
data can include sample scripts, session data, configured binaries, logs, and so on. This
folder is referenced in documentation as CONFIG_HOME.
code font
Code font identifies commands, code examples, filenames, pathnames, and output
displayed in a command window. For example:
Use MyCommand to start the foo process.
Code example:
public class HelloWorldImpl extends AbstractHelloWorldImpl {
...
public HelloResponseDocument sayHello(HelloRequestDocument
firstName) {
...
System.out.println("--> Generating Java Hello Component
Response...");
String name =
firstName.getHelloRequest()==null||firstName.getHelloRequest().
equals("")?"Friend":firstName.getHelloRequest();
HelloResponseDocument resp =
HelloResponseDocument.Factory.newInstance();
resp.setHelloResponse("Hi " + name + "! " + "This is the Java
component.\n");
System.out.println("--> Java Hello Component Response: \n\t\t"
+
resp.getHelloResponse());
...
}
}
CONFIG_HOME/admin/enterpriseName/samples/remote_props.properties
Output example:
C:\Program Files\tibco\amx-3\studio\3.5\eclipse>amx_eclipse_ant.exe
-buildfile "C:/helloworld1/build.xml" -data "C:/hws"
Buildfile: C:/helloworld1/build.xml
createApplicationDAA:
[sds.createDAA] Waited for 47ms for workspace refreshes after building
features.
all:
BUILD SUCCESSFUL
BUILD SUCCESSFUL
Total time: 2 minutes 18 seconds
12 | Preface
Convention
Use
italic font
Key
combinations
Key name separated by a plus sign indicate keys pressed simultaneously. For example:
Ctrl+C.
Key names separated by a comma and space indicate keys pressed one after the other.
For example: Esc, Ctrl+Q.
The note icon indicates information that is of special interest or importance, for example,
an additional action required only in certain circumstances.
The tip icon indicates an idea that could be useful, for example, a way to apply the
information provided in the current section to achieve a specific result.
The warning icon indicates the potential for a damaging situation, for example, data loss
or corruption if certain steps are taken or not taken.
Use
[]
A logical OR that separates multiple items of which only one may be chosen.
For example, you can select only one of the following parameters:
MyCommand param1
{}
| param2 | param3
A logical group of items in a command. Other syntax notations may appear within each
logical group.
For example, the following command requires two parameters, which can be either the
pair param1 and param2, or the pair param3 and param4.
MyCommand {param1 param2}
| {param3 param4}
In the next example, the command requires two parameters. The first parameter can be
either param1 or param2 and the second can be either param3 or param4:
MyCommand {param1
Preface | 13
Convention
Use
In the next example, the command can accept either two or three parameters. The first
parameter must be param1. You can optionally include param2 as the second parameter.
And the last parameter is either param3 or param4.
MyCommand param1 [param2] {param3
| param4}
14 | Preface
Chapter
1
Overview
These tutorials demonstrate how to deploy and run SOA applications developed in TIBCO Business Studio in
TIBCO ActiveMatrix Administrator and send SOAP requests from the TIBCO Business Studio Web Services
Explorer.
Tutorial Facts lists the location of the sample projects, the names of the deployed applications, and the ports of the
HTTP connector resources used by the applications. . Before proceeding with a tutorial, complete the steps in
Tutorial Prerequisites on page 17.
Table 3: Tutorial Facts
Tutorial
Deployed Applications
Ports
Hello World
TIBCO_HOME/amx/3.2/samples
helloworld1
9095
helloworld2
9096
datemanager
9097
/java/helloworld1.zip
TIBCO_HOME/amx/3.2/samples/java/helloworld2.zip
Phonebook
TIBCO_HOME/amx/3.2/samples/java/phonebook.zip phonebook
9098
TIBCO_HOME/amx/3.2/samples/amx_it_webapp/helloworld.zip helloworld
9099
TIBCO_HOME/amx_it_mediation/3.2/samples/ContentBasedRouting querygds
8777
TIBCO_HOME/amx_it_mediation/3.2/samples/TargetService targetservice
8666
Content-Based Routing
Chapter
2
Tutorial Prerequisites
Topics
18 | Tutorial Prerequisites
4. If you want to register deployed services in a UDDI registry, install and start TIBCO ActiveMatrix Runtime
UDDI Server.
Tutorial Prerequisites | 19
20 | Tutorial Prerequisites
Tutorial Prerequisites | 21
Chapter
3
How to Configure Logging
Topics
1.
Host
1.
Node
2. Click Add.
A row is added to the list.
3. In the Logger Name column, type a logging configuration name.
4. In the Additivity column, select an additivity.
5. Click Set Appender.
A row is added to the list.
6. In the Level column, select a logging level.
7. In the Appender column, select an appender.
8. Click Save and Apply.
Chapter
4
How to Deploy and Run the Hello World Application
This how-to describes how to deploy and run the Hello World application in TIBCO ActiveMatrix Administrator.
Topics
Click Applications.
In the Applications list, click helloworld1.
Click the Distribution tab.
Click helloworld1.
The machine name has to be updated before using the WSDL file.
2. Click Details.
The details of the Services deployed in TIBCO ActiveMatrix business display.
3. In tree on the left, expand the helloworld1-HelloWorldPT node and click the binding template key under
the node.
In the right pane, the General Information tab of the Binding Template displays the service access point
http://0.0.0.0:9095/helloWorldPT/.
Chapter
5
How to Deploy and Run the Enhanced Hello World
Application
This how-to describes how to deploy and run the enhanced Hello World application in TIBCO ActiveMatrix
Administrator.
Topics
-f datemgr_build.xml.
Buildfile: datemgr_build.xml
upload.daa:
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - Uploading DAA...
[AMXAdminTask] INFO - DAA location: jv.datemanager.soa.daa
[AMXAdminTask] INFO - Successfully added Application Template 'jv.datemanager.soa'
(version: '1.0.0.201005041043') to the Administrator Staging Area
[AMXAdminTask] INFO - Successfully added Feature 'jv.datemanager.soa.customfeature.id'
(version: '1.0.0.201005041043') to the Administrator Staging Area
create.app:
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - Adding application...
[AMXAdminTask] INFO - Successfully added Application 'datemanager'
map.app.to.node:
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - Mapping application to nodes...
[AMXAdminTask] INFO - Successfully mapped application 'datemanager' to node 'DevNode'
create.rt:
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - HttpConnector Resource template created with name
DateMgrConnectorTemplate and Id 29
create.ri:
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - Adding Resource Instances...
[AMXAdminTask] INFO - Resource Instance datemgrConnector created on Node DevNode
install.ri:
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - Start to install Resource Instance 'datemgrConnector'
[AMXAdminTask] INFO - Resource Instance Install finished successfully
deploy.app:
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - Deploying application...
[AMXAdminTask] INFO - Successfully deployed Application 'datemanager': Deployment
succeeded for application 'datemanager' at 05/03/10 4:04 PM
[AMXAdminTask] INFO - .
[AMXAdminTask] INFO - Application Deploy with Start finished successfully
all:
BUILD SUCCESSFUL
Chapter
6
How to Deploy and Run the Phonebook Application
This how-to describes how to deploy and run the Phonebook web application in TIBCO ActiveMatrix Administrator.
Topics
firstName (string):
lastName (string):
phone (string):
Joe
Doe
111-1111
Chapter
7
How to Deploy and Run the Hello World Web Application
This how-to describes how to deploy and run the Hello World web application in TIBCO ActiveMatrix Administrator.
Topics
Chapter
8
How to Deploy and Run the Content-Based Routing
Mediation Application
This how-to describes how to deploy and run the content-based routing mediation application in TIBCO ActiveMatrix
Administrator.
Topics
TIBCO_HOME\amx_it_mediation\3.4\samples\TargetService\targetservice.soa\Deployment
Artifacts\targetservice.mediationsamples.daa.
The targetservice application is added to the Applications list with Runtime State Not Deployed.
httpConnectorTargetService
HttpClient_querygds.soap.binding
HttpClient_querygdsasia.soap.binding
HttpClient_querygdseurope.soap.binding
HttpClient_querygdsus.soap.binding