Professional Documents
Culture Documents
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
Set Up the Runtime Environment...........................................................................................18 Create a UDDI Server in Administrator..................................................................................19 Configure Administrator Command-Line Properties..............................................................20 Set Up the Service Invocation Environment...........................................................................21
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
Create an HTTP Connector Resource Template....................................................................45 Create and Install the HTTP Connector Resource Instance..................................................46 Create and Install the HTTP Client Resource Instance..........................................................47 Distribute the Enhanced Hello World Application...................................................................48 Deploy and Start the Enhanced Hello World Application.......................................................49 Generate the Hello World WSDL File.....................................................................................50 Invoke the Hello World Service..............................................................................................51
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
TIBCO_HOME ENV_NAME
Use 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. 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 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
code font
12 | Preface
Convention
bold code font
Use Bold code font is used in the following ways: In procedures, to indicate what a user types. For example: Type admin. In large code samples, to indicate the parts of the sample that are of particular interest. In command syntax, to indicate the default parameter for a command. For example, if no parameter is specified, MyCommand is enabled:
MyCommand [enable | disable]
italic font
Italic font is used in the following ways: To indicate a document title. For example: See TIBCO BusinessWorks Concepts. To define new terms. For example: A keystore is a database of keys and certificates. To indicate a variable in a command or code syntax that you must replace. For example: MyCommand pathname. 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.
Key combinations
Table 2: Syntax Typographical Conventions Convention [] Use An optional item in command syntax. For example:
MyCommand [optional_parameter] required_parameter
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 Hello World Enhanced Hello World Sample Project Location
TIBCO_HOME/amx/3.2/samples
/java/helloworld1.zip
Ports 9095
T I B C O _ H O M E / a m x / 3 . 2 / s a m p l e s / j a v a / h e l l o w o r l d 2 . z i p
helloworld2 datemanager
T I B C O _ H O M E / a m x _ i t _ m e d i a t i o n / 3 . 2 / s a m p l e s / C o n t e n t B a s e d R o u t i n g querygds T I B C O _ H O M E / a m x _ i t _ m e d i a t i o n / 3 . 2 / s a m p l e s / T a r g e t S e r v i c e targetservice
8777 8666
Chapter
2
Tutorial Prerequisites
Topics Set Up the Runtime Environment Create a UDDI Server in Administrator Configure Administrator Command-Line Properties Set Up the Service Invocation Environment
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 Create a Logging Appender Navigate to a Logging Configurations List Create a Logging Configuration Apply a Logging Configuration
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 Complete Hello World Prerequisites Create the Hello World Application Create an HTTP Connector Resource Template Create and Install the HTTP Connector Resource Instance Distribute the Hello World Application Deploy and Start the Hello World Application Generate the Hello World WSDL File Invoke the Hello World Service How to View the Hello World Service in the UDDI Server
In the Available Nodes list, click DevNode and click The node moves to the Selected Nodes list. 6. Click Save.
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 Complete Enhanced Hello World Prerequisites Deploy and Start the Date Manager Application Create the Hello World Application Create an HTTP Connector Resource Template Create and Install the HTTP Connector Resource Instance Create and Install the HTTP Client Resource Instance Distribute the Enhanced Hello World Application Deploy and Start the Enhanced Hello World Application Generate the Hello World WSDL File Invoke the Hello World Service
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 Complete Phonebook Prerequisites Create the Phonebook Application Create an HTTP Connector Resource Template Create and Install the HTTP Connector Resource Instance Create and Install the JDBC Shared Resource Instance Distribute the Phonebook Application Deploy and Start the Phonebook Application Generate the Phonebook WSDL File Invoke the Phonebook Service
3. Click the getPhone node. 4. In the Invoke a WSDL Operation pane on the right, click the Add link next to the firstName field. A new row is added below the field. 5. Type Joe in the empty row. 6. Click Go. The Status pane displays:
GetPhoneResponse out entryId (string): firstName (string): lastName (string): phone (string): 0 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 Complete Hello World Web Application Prerequisites Create the Hello World Web Application Create an HTTP Connector Resource Template Create and Install the HTTP Connector Resource Instance Distribute the Hello World Web Application Deploy and Start the Hello World Web Application Invoke the Hello World Web Application
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 Create the Routing and Target Service Mediation Applications Create HTTP Connector Resource Templates Create and Install Resource Instances Distribute the Routing and Target Service Applications Deploy and Start the Routing and Target Service Applications Generate the Routing WSDL File
and select click mediation.querygds.route.daa, and click Open. 5. In the Application Name field, type querygds. 6. In the Environment Name drop-down list, select DevEnvironment. 7. Choose an application folder. 8. Click Next. 9. Check the checkbox for the node where you want to deploy your application and click Next. 10. Click Next. 11. Choose to import to listed resource templates and click Next. 12. Accept default values for the configuration properties and click Next. 13. Click Save And Exit. The querygds application is added to the Applications list with Runtime State Not Deployed and the resource templates used by the application are added to the database. 14. Repeat steps 2 through 13 for the target service application. Name the application targetservice and use the DAA
Artifacts\
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.