3 Tib Amx Administration Tutorials

download 3 Tib Amx Administration Tutorials

of 78

description

3 Tib Amx Administration Tutorials

Transcript of 3 Tib Amx Administration Tutorials

  • TIBCO ActiveMatrix Service GridAdministration TutorialsSoftware Release 3.2.0August 2012

  • Important Information

    SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDEDOR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITEDADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLEDSOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FORANY OTHER PURPOSE.

    USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF ALICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE AGREEMENT,OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER LICENSE AGREEMENTWHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE SOFTWARE (AND WHICH ISDUPLICATED IN THE LICENSE FILE) OR IF THERE IS NO SUCH SOFTWARE LICENSE AGREEMENT ORCLICKWRAP END USER LICENSE AGREEMENT, THE LICENSE(S) LOCATED IN THE LICENSE FILE(S) OFTHE SOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, AND YOURUSE 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 SoftwareInc.

    TIBCO, The Power of Now, TIBCO ActiveMatrix, and TIBCO Enterprise Message Service are either registeredtrademarks 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 SunMicrosystems, 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 respectiveowners and are mentioned for identification purposes only.

    THIS SOFTWARE MAY BE AVAILABLE ON MULTIPLE OPERATING SYSTEMS. HOWEVER, NOT ALLOPERATING SYSTEM PLATFORMS FOR A SPECIFIC SOFTWARE VERSION ARE RELEASED AT THE SAMETIME. SEE THE README FILE FOR THE AVAILABILITY OF THIS SOFTWARE VERSION ON A SPECIFICOPERATING SYSTEM PLATFORM.

    THIS DOCUMENT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS ORIMPLIED, 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. CHANGESARE PERIODICALLYADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATEDIN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE IMPROVEMENTS AND/ORCHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS DOCUMENT AT ANYTIME.

    THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR INDIRECTLY,BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE, INCLUDING BUT NOT LIMITEDTO ANY RELEASE NOTES AND "READ ME" FILES.

    Copyright (c) 2005-2012 TIBCO Software Inc. ALL RIGHTS RESERVED.

    TIBCO Software Inc. Confidential Information

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Contents

    Preface..................................................................................................7Changes from the Previous Release of this Guide..................................................................8TIBCO Product Documentation................................................................................................9Other TIBCO Product Documentation....................................................................................10Typographical Conventions....................................................................................................11Connecting with TIBCO Resources........................................................................................14

    Chapter 1 Overview.........................................................................15

    Chapter 2 Tutorial Prerequisites ...................................................17Set Up the Runtime Environment...........................................................................................18Create a UDDI Server in Administrator..................................................................................19Configure Administrator Command-Line Properties..............................................................20Set Up the Service Invocation Environment...........................................................................21

    Chapter 3 How to Configure Logging............................................23Create a Logging Appender...................................................................................................24Navigate to a Logging Configurations List..............................................................................25Create a Logging Configuration.............................................................................................26Apply a Logging Configuration...............................................................................................27

    Chapter 4 How to Deploy and Run the Hello World Application...29Complete Hello World Prerequisites.......................................................................................30Create the Hello World Application.........................................................................................31Create an HTTP Connector Resource Template....................................................................32Create and Install the HTTP Connector Resource Instance..................................................33Distribute the Hello World Application....................................................................................34Deploy and Start the Hello World Application.........................................................................35Generate the Hello World WSDL File.....................................................................................36Invoke the Hello World Service..............................................................................................37How to View the Hello World Service in the UDDI Server......................................................38

    Chapter 5 How to Deploy and Run the Enhanced Hello World Application.41Complete Enhanced Hello World Prerequisites.....................................................................42Deploy and Start the Date Manager Application....................................................................43Create the Hello World Application.........................................................................................44

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    TOC | 5

  • Create an HTTP Connector Resource Template....................................................................45Create and Install the HTTP Connector Resource Instance..................................................46Create and Install the HTTP Client Resource Instance..........................................................47Distribute the Enhanced Hello World Application...................................................................48Deploy and Start the Enhanced Hello World Application.......................................................49Generate the Hello World WSDL File.....................................................................................50Invoke the Hello World Service..............................................................................................51

    Chapter 6 How to Deploy and Run the Phonebook Application..53Complete Phonebook Prerequisites.......................................................................................54Create the Phonebook Application.........................................................................................55Create an HTTP Connector Resource Template....................................................................56Create and Install the HTTP Connector Resource Instance..................................................57Create and Install the JDBC Shared Resource Instance.......................................................58Distribute the Phonebook Application....................................................................................59Deploy and Start the Phonebook Application.........................................................................60Generate the Phonebook WSDL File.....................................................................................61Invoke the Phonebook Service...............................................................................................62

    Chapter 7 How to Deploy and Run the Hello World Web Application.63Complete Hello World Web Application Prerequisites............................................................64Create the Hello World Web Application................................................................................65Create an HTTP Connector Resource Template....................................................................66Create and Install the HTTP Connector Resource Instance..................................................67Distribute the Hello World Web Application............................................................................68Deploy and Start the Hello World Web Application................................................................69Invoke the Hello World Web Application.................................................................................70

    Chapter 8 How to Deploy and Run the Content-Based Routing Mediation Application.71Create the Routing and Target Service Mediation Applications.............................................72Create HTTP Connector Resource Templates.......................................................................73Create and Install Resource Instances..................................................................................74Distribute the Routing and Target Service Applications..........................................................75Deploy and Start the Routing and Target Service Applications..............................................76Generate the Routing WSDL File...........................................................................................77

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    6 | TOC

  • Preface

    TIBCO ActiveMatrix Service Grid is a scalable and extensible platform for developing, deploying, andmanaging applications that conform to a service-oriented architecture.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Changes from the Previous Release of this GuideThis section itemizes the major changes from the previous release of this guide.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    8 | Preface

  • TIBCO Product DocumentationThis section lists documentation resources you may find useful.

    The following documents form the TIBCO ActiveMatrix Service Grid documentation set: Concepts: Read this manual before reading any other manual in the documentation set. This manual

    describes terminology and concepts of the TIBCO ActiveMatrix platform. The other manuals in thedocumentation set assume you are familiar with the information in this manual.

    Development Tutorials: Read this manual for a step-by-step introduction to the process of creating, packaging,and running composites in TIBCO Business Studio.

    Composite Development: Read this manual to learn how to develop and package composites. Java Component Development: Read this manual to learn how to configure and implement Java components. Mediation Component Development: Read this manual to learn how to configure and implement Mediation

    components. Mediation API Reference: Read this manual to learn how to develop custom Mediation tasks. Spring Component Development: Read this manual to learn how to configure and implement Spring

    components. WebApp Component Development: Read this manual to learn how to configure and implement Web

    Application components. Administration Tutorials: Read this manual for a step-by-step introduction to the process of creating and

    starting the TIBCO ActiveMatrix runtime, starting TIBCO ActiveMatrix servers, and deploying applicationsto the runtime.

    Administration: Read this manual to learn how to manage the runtime and deploy and manage applications. Installation and Configuration: Read this manual to learn how to install TIBCO ActiveMatrix Service Grid

    software and create and upgrade runtime objects. Release Notes: Read this manual for a list of new and changed features, steps for migrating from a previous

    release, and lists of known issues and closed issues for the release.

    The documentation for the following features is installed separately: TIBCO ActiveMatrix Implementation Type for C++ TIBCO ActiveMatrix Binding Type for EJB TIBCO ActiveMatrix Binding Type for Adapters TIBCO ActiveMatrix Implementation Type for Adapters TIBCO ActiveMatrix Implementation Type for Microsoft CLR

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    Preface | 9

  • Other TIBCO Product DocumentationYou may find it useful to read the documentation for the following TIBCO products: TIBCO Enterprise Message Service

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    10 | Preface

  • Typographical ConventionsTable 1: General Typographical Conventions

    UseConvention

    TIBCO products are installed into an installation environment. A product installed intoan installation environment does not access components in other installation environments.

    TIBCO_HOME

    ENV_NAME Incompatible products and multiple instances of the same product must be installed intodifferent installation environments. An installation environment consists of the followingproperties: 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 productshortcut in the Windows Start > All Programs menu. This name is referenced indocumentation as ENV_NAME.

    Path - The folder into which the product is installed. This folder is referenced indocumentation as TIBCO_HOME.

    The folder that stores configuration data generated by TIBCO products. Configurationdata can include sample scripts, session data, configured binaries, logs, and so on. Thisfolder is referenced in documentation as CONFIG_HOME.

    CONFIG_HOME

    Code font identifies commands, code examples, filenames, pathnames, and outputdisplayed in a command window. For example:

    code font

    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 SUCCESSFULTotal time: 2 minutes 18 seconds

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    Preface | 11

  • UseConvention

    Bold code font is used in the following ways:bold code font 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 is used in the following ways:italic font 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.

    Keycombinations

    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 theinformation provided in the current section to achieve a specific result.

    The warning icon indicates the potential for a damaging situation, for example, data lossor corruption if certain steps are taken or not taken.

    Table 2: Syntax Typographical Conventions

    UseConvention

    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 eachlogical group.

    For example, the following command requires two parameters, which can be either thepair 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 beeither param1 or param2 and the second can be either param3 or param4:

    MyCommand {param1 | param2} {param3 | param4}

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    12 | Preface

  • UseConvention

    In the next example, the command can accept either two or three parameters. The firstparameter 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}

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    Preface | 13

  • Connecting with TIBCO Resources

    How to Join TIBCOmmunityTIBCOmmunity is an online destination for TIBCO customers, partners, and resident experts. It is a place toshare and access the collective experience of the TIBCO community. TIBCOmmunity offers forums, blogs,and access to a variety of resources. To register, go to http://www.tibcommunity.com.

    How to Access TIBCO DocumentationAfter you join TIBCOmmunity, you can access the documentation here: http://docs.tibco.com.

    How to Contact TIBCO SupportFor comments or problems with this manual or the software it addresses, contact TIBCO Support as follows: For an overview of TIBCO Support, and information about getting started with TIBCO Support, visit this

    site:

    http://www.tibco.com/services/support

    If you already have a valid maintenance or support contract, visit this site:

    https://support.tibco.com

    Entry to this site requires a username and password. If you do not have a username, you can request one.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    14 | Preface

  • Chapter

    1Overview

    These tutorials demonstrate how to deploy and run SOA applications developed in TIBCO Business Studio inTIBCO ActiveMatrix Administrator and send SOAP requests from the TIBCO Business Studio Web ServicesExplorer.

    Tutorial Facts lists the location of the sample projects, the names of the deployed applications, and the ports of theHTTP connector resources used by the applications. . Before proceeding with a tutorial, complete the steps inTutorial Prerequisites on page 17.

    Table 3:Tutorial Facts

    PortsDeployed ApplicationsSample Project LocationTutorial9095helloworld1TIBCO_HOME/amx/3.2/samples

    /java/helloworld1.zip

    Hello World

    9096helloworld2TIBCO_HOME/amx/3.2/samples/java/helloworld2.zipEnhanced Hello World

    9097datemanager

    9098phonebookTIBCO_HOME/amx/3.2/samples/java/phonebook.zipPhonebook

    9099helloworldTIBCO_HOME/amx/3.2/samples/amx_it_webapp/helloworld.zipHello World WebApplication

    8777querygdsTIBCO_HOME/amx_it_mediation/3.2/samples/ContentBasedRoutingContent-Based Routing

    8666targetserviceTIBCO_HOME/amx_it_mediation/3.2/samples/TargetService

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Chapter

    2Tutorial Prerequisites

    Topics

    Set Up the Runtime Environment Create a UDDI Server in Administrator Configure Administrator Command-Line Properties Set Up the Service Invocation Environment

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Set Up the Runtime Environment

    About this task

    Procedure

    1. Create and start a TIBCO ActiveMatrix Administrator server as described in the installation manual foryour product. When you create the Administrator server, create a development node and accept thedefault values for the environment and node names.

    2. Invoke the TIBCO ActiveMatrix Administrator GUI. The URL ishttp://machinename:port//amxadministrator/loginForm.jsp, where machinename is the machine on whichyou created Administrator server and port is the port on which Administrator clients access theAdministrator server .

    3. Log in with the credentials you specified when you created the Administrator server.After successful login, Administrator displays the Welcome screen.

    4. If you want to register deployed services in a UDDI registry, install and start TIBCO ActiveMatrix RuntimeUDDI Server.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    18 | Tutorial Prerequisites

  • Create a UDDI Server in Administrator

    Procedure

    1. In the Administrator GUI, select Infrastructure > Servers.2.

    Click .The New Server dialog displays.

    3. In the Name field, type SOAUDDI.4. In the Type field, ensure that UDDI is selected.5. In the UDDI Server Type field, select TIBCO.6. In the Hostname/IP field, type the name of the host on which the UDDI server is running.7. In the Port field, type 58080.8. In the Username and Password fields, type admin and admin.9. Click the Test Connection button.10. In the Publication Business drop-down list, type Services deployed in TIBCO ActiveMatrix.11. Check the Automatic Publication checkbox.12. Click Save.

    ResultsWhen you deploy an application, Administrator will publish the endpoints exposed by the application inthe UDDI server.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    Tutorial Prerequisites | 19

  • Configure Administrator Command-Line Properties

    Procedure

    1. In a terminal window, open CONFIG_HOME/ admin/enterpriseName/samples/remote_props.propertiesin a text editor.a) Replace the host portion of the value of the adminURL property with the host on which the Administrator

    server is running.b) Replace the port portion of the value of the adminURL property with the port on which the Administrator

    server is running.c) Replace the username and password properties with the credentials you specified when you created

    the Administrator server.

    2. Save the properties file.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    20 | Tutorial Prerequisites

  • Set Up the Service Invocation Environment

    About this taskCreate a project in TIBCO Business Studio to contain the concrete WSDL files of deployed service bindings.To test a deployed service, you open the concrete WSDL file in the TIBCO Business Studio Web ServicesExplorer and generate SOAP requests.

    Procedure

    1. Start TIBCO Business Studio.2. Select File > New > Project....

    The New Project wizard displays.3. Select General > Project and click Next >.4. In the File name field, type ConcreteWSDLs and click Finish.

    A general project named ConcreteWSDLs displays in the Project Explorer view.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    Tutorial Prerequisites | 21

  • Chapter

    3How to Configure Logging

    Topics

    Create a Logging Appender Navigate to a Logging Configurations List Create a Logging Configuration Apply a Logging Configuration

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Create a Logging Appender

    Procedure

    1. Select Shared Objects > Logging Appenders.2.

    Click .The New Logging Appender dialog displays with the drop-down list of the logging appender typeexpanded.

    3. Select an appender type from the Type list.

    Clear Text File - Appends events to a file in clear text format. CBE XML File - Appends events to a file in Common Base Event (CBE) format. JMS - Append events to a log service.

    The dialog redraws with the appender-specific fields.4. Accept the default name or type a name for the appender in the Name field.5. Fill in the fields and click Save.

    The appender is added to the Logging Appenders table and is selected.

    Results

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    24 | How to Configure Logging

  • Navigate to a Logging Configurations List

    Procedure

    1. Navigate to a list of hosts, nodes, or applications.2. Click a host, node, or application.3. Click the Configuration tab.4. Click the Logging link.

    The logging configurations table for the host, node, or application displays.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Configure Logging | 25

  • Create a Logging Configuration

    Procedure

    1. Choose a starting point Navigate to a logging configurations list.ProcedureStarting Point

    Applications 1.

    Host

    Node1.

    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.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    26 | How to Configure Logging

  • Apply a Logging Configuration

    Procedure

    1. Select the object for which logging is being configured.2. Navigate to a logging configurations list and click a logging configuration.3. Click Apply.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Configure Logging | 27

  • Chapter

    4How 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

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Complete Hello World Prerequisites

    Procedure

    In TIBCO Business Studio, create a distributed application archive (DAA) by following the instructionsin the How To Create and Package a Hello World Application TIBCO Business Studio cheat sheet orextract jv.helloworld1.soa/Deployment Artifacts/jv.helloworld1.soa.daa from helloworld1.zip.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    30 | How to Deploy and Run the Hello World Application

  • Create the Hello World Application

    Procedure

    1. Click the Applications tab.2. Click the New New Application.

    The New Application wizard displays.3. Select the radio button for Create the application from a DAA or EAR file and click the Browse button.4. Navigate to the folder containing the file jv.helloworld1.soa.daa, click the DAA, and click Open.5. In the Application Name field, replace the default name with helloworld1.6. In the Environment Name drop-down list, select DevEnvironment.7. Choose an application folder.8. Click Next.9. Choose to import the listed feature and click Next.10. Check the checkbox for the node where you want to deploy your application and click Next.11. Accept default values for the configuration properties and click Next.

    The validation screen displays.12. Click Save and Exit.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Application | 31

  • Create an HTTP Connector Resource Template

    Procedure

    1. Select Shared Objects > Resource Templates.2.

    Click .The Add Resource Template dialog displays.

    3. In the Type drop-down list, select HTTP Connector.The HTTP connector configuration fields display.

    4. In the Name field, replace the default name with hello1Connector.5. Accept the default Machine Name.6. In the Port field, type 9095.7. Accept default values for all other fields.8. Click Save.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    32 | How to Deploy and Run the Hello World Application

  • Create and Install the HTTP Connector Resource Instance

    Procedure

    1. Select Infrastructure > Hosts.2. In the Hosts list, click SystemHost.

    The host details display below the list.3. Click the Resource Instances tab.

    The All Instances list displays.4. Click New.

    The New Resource Instances dialog displays.5. In the resource templates list at the top, click the hello1Connector row. The Instance Name field is set to

    hello1Connector.6.

    In the Available Nodes list at the bottom, click DevNode and click .The node moves to the Selected Nodes list.

    7. Click Save and Close.The Install Resource Instance dialog displays. By default, the checkbox for the newly created resourceinstance is checked.

    8. Click Install in the Install Resource Instance dialog box.9. Click until the status changes to Running.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Application | 33

  • Distribute the Hello World Application

    Procedure

    1. Click Applications.2. In the Applications list, click helloworld1.3. Click the Distribution tab.4. Click helloworld1.5.

    In the Available Nodes list, click DevNode and click .The node moves to the Selected Nodes list.

    6. Click Save.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    34 | How to Deploy and Run the Hello World Application

  • Deploy and Start the Hello World Application

    Procedure

    1. Click Deploy.The application is deployed and started. If you have completed Create a UDDI Server in Administratoron page 19, the WSDL file is published in the UDDI server.

    2. Click to refresh the display.The Runtime State changes to Starting and the Action History changes to In Progress (Deploy).

    3. Click to refresh the display.The Runtime State changes to Running and the Action History changes to Deploy with Start Successful.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Application | 35

  • Generate the Hello World WSDL File

    Procedure

    1. Click the Configuration tab.2. Expand the helloworld1 node.3. Click the HelloWorldPT service.

    The service details display on the right.4. Click the Bindings link.

    The service's binding details display.5. In the list of bindings, expand HelloWorld1SOAP.

    The list of nodes on which the binding is deployed displays below.6. In the node list, click DevNode.

    The Generate WSDL button activates.7. Click Generate WSDL.

    The WSDL document representing the deployed service displays.8. Save the WSDL file with the name helloworld1.wsdl in the ConcreteWSDLs project in TIBCO Business

    Studio.

    ResultsThe WSDL file is created.

    By default HTTP connectors are created with the machine name 0.0.0.0. For example,

    The machine name has to be updated before using the WSDL file.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    36 | How to Deploy and Run the Hello World Application

  • Invoke the Hello World Service

    Procedure

    1. In TIBCO Business Studio, right-click Concrete WSDLs/helloworld1.wsdl and select Web Services >Test with Web Services Explorer.The WSDL file opens in the Web Services Explorer.

    2. In the Navigator pane, expand the HelloWorld1SOAP node.3. Click the sayHello node.

    The Invoke a WSDL Operation displays on the right with the newly created endpoint selected in theEndpoints drop-down list.

    4. In the Actions pane, type Jim in the HelloRequest field.5. Click Go.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Application | 37

  • How to View the Hello World Service in the UDDI Server

    Procedure

    1. Start the TIBCO ActiveMatrix UDDI Service Console GUI.The Services Deployed in TIBCO ActiveMatrix business displays in the Service Console.

    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 underthe node.In the right pane, the General Information tab of the Binding Template displays the service access pointhttp://0.0.0.0:9095/helloWorldPT/.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    38 | How to Deploy and Run the Hello World Application

  • TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Application | 39

  • Chapter

    5How to Deploy and Run the Enhanced Hello WorldApplication

    This how-to describes how to deploy and run the enhanced Hello World application in TIBCO ActiveMatrixAdministrator.

    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

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Complete Enhanced Hello World Prerequisites

    Procedure

    1. In TIBCO Business Studio, create a distributed application archive (DAA) by following the instructionsin the How To Enhance the Hello World Application TIBCO Business Studio cheat sheet or extractjv.helloworld2.soa/Deployment Artifacts/jv.helloworld2.soa.daa from helloworld2.zip.

    2. Extract datemgr_build.xml, datemgr_data.xml, and jv.datemanager.soa.daa fromjv.datemanager.soa/Deployment Artifacts/ from helloworld2.zip.

    3. Edit datemgr_build.xml and replace all instances of C:/amx-3/tibco/cfgmgmt with the path of yourCONFIG_HOME directory. Set the file attribute of the import element toTIBCO_HOME/administrator/3.1/bin/taskdef.xml.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    42 | How to Deploy and Run the Enhanced Hello World Application

  • Deploy and Start the Date Manager Application

    Procedure

    In a TIBCO ActiveMatrix terminal window, run ant -f datemgr_build.xml.Buildfile: datemgr_build.xmlupload.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 Areacreate.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 29create.ri:[AMXAdminTask] INFO - Processing 1 objects[AMXAdminTask] INFO - Adding Resource Instances...[AMXAdminTask] INFO - Resource Instance datemgrConnector created on Node DevNodeinstall.ri:[AMXAdminTask] INFO - Processing 1 objects[AMXAdminTask] INFO - Start to install Resource Instance 'datemgrConnector'[AMXAdminTask] INFO - Resource Instance Install finished successfullydeploy.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

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Enhanced Hello World Application | 43

  • Create the Hello World Application

    Procedure

    1. Click the Applications tab.The Applications list displays. The datemanager application appears in the list with Runtime State Running.

    2. Click the New New Application.The New Application wizard displays.

    3. Select the radio button for Create the application from a DAA or EAR file and click the Browse button.4. Navigate to the folder containing the file jv.helloworld2.soa.daa, click the DAA, and click Open.5. In the Application Name field, replace the default name with helloworld2.6. In the Environment Name drop-down list, select DevEnvironment.7. Choose an application folder.8. Click Next.9. Choose to import the listed features and click Next.10. Check the checkbox for the node where you want to deploy your application and click Next.11. In the promoted references screen, click Next.12. Choose to import to listed resource templates and click Next.13. Accept default values for the configuration properties and click Next.14. Accept default values for the substitution variables and click Next.15. Click Save And Exit.

    The helloworld2 application is added to the Applications list with Runtime State Not Deployed. Thespecified resource templates are imported into the Administrator database.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    44 | How to Deploy and Run the Enhanced Hello World Application

  • Create an HTTP Connector Resource Template

    Procedure

    Follow the steps in Create an HTTP Connector Resource Template on page 32. In the Name field, typehello2Connector. In the Port field, type 9096.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Enhanced Hello World Application | 45

  • Create and Install the HTTP Connector Resource Instance

    Procedure

    Follow the steps in Create and Install the HTTP Connector Resource Instance on page 33. Use the templatehello2Connector.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    46 | How to Deploy and Run the Enhanced Hello World Application

  • Create and Install the HTTP Client Resource Instance

    Procedure

    Follow the steps in Create and Install the HTTP Connector Resource Instance on page 33. Use theHttpClient_DateManagerSOAP template.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Enhanced Hello World Application | 47

  • Distribute the Enhanced Hello World Application

    Procedure

    Follow the steps in Distribute the Hello World Application on page 34. Click the helloworld2 applicationand the jv.helloworld2.soa component.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    48 | How to Deploy and Run the Enhanced Hello World Application

  • Deploy and Start the Enhanced Hello World Application

    Procedure

    1. Click Deploy.The application is deployed and started. If you have completed Create a UDDI Server in Administratoron page 19, the WSDL file is published in the UDDI server.

    2. Click to refresh the display.The Runtime State changes to Starting and the Action History changes to In Progress (Deploy).

    3. Click to refresh the display.The Runtime State changes to Running and the Action History changes to Deploy with Start Successful.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Enhanced Hello World Application | 49

  • Generate the Hello World WSDL File

    Procedure

    Follow the steps in Generate the Hello World WSDL File on page 36. Click the HelloWorld2SOAP bindingand name the WSDL file helloworld2.wsdl.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    50 | How to Deploy and Run the Enhanced Hello World Application

  • Invoke the Hello World Service

    Procedure

    Apply the steps in Invoke the Hello World Service on page 37 to helloworld2.wsdl.The Status pane displays a response of the form:HelloResponse (string): Hi Jim! This is the Java component.The current time is 2009-11-19 16:32:57.337.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Enhanced Hello World Application | 51

  • Chapter

    6How 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

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Complete Phonebook Prerequisites

    Procedure

    1. In TIBCO Business Studio, create a distributed application archive (DAA) by following the instructionsin the How to Create and Package the Phonebook Application TIBCO Business Studio cheat sheet orextract jv.phonebook.soa/Deployment Artifacts/jv.phonebook.soa.daa from phonebook.zip.

    2. Download HyperSQL Database Engine version 1.8.1.2 fromhttp://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_1_8_1/hsqldb_1_8_1_2.zip/download.

    3. Unpack hsqldb-1.8.1.2.zip.4. Change to the server directory: cd hsqldb/bin.5. Start the HyperSQL database server: java -cp ../lib/hsqldb.jar org.hsqldb.Server.

    The server outputs:> java -cp ../lib/hsqldb.jar org.hsqldb.Server[Server@83cc67]: [Thread[main,5,main]]: checkRunning(false) entered[Server@83cc67]: [Thread[main,5,main]]: checkRunning(false) exited[Server@83cc67]: Startup sequence initiated from main() method[Server@83cc67]: Loaded properties from [C:\Documents and Settings\sbodoff\Desktop\hsqldb\hsqldb\bin\server.properties][Server@83cc67]: Initiating startup sequence...[Server@83cc67]: Server socket opened successfully in 78 ms.[Server@83cc67]: Database [index=0, id=0, db=file:test, alias=] opened sucessfully in 468 ms.[Server@83cc67]: Startup sequence completed in 546 ms.[Server@83cc67]: 2010-05-04 14:06:10.923 HSQLDB server 1.8.1 is online[Server@83cc67]: To close normally, connect and execute SHUTDOWN SQL[Server@83cc67]: From command line, use [Ctrl]+[C] to abort abruptly

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    54 | How to Deploy and Run the Phonebook Application

  • Create the Phonebook Application

    Procedure

    1. Click Applications.The Applications list displays.

    2. Click the New New Application.The Application Setup wizard displays.

    3. Select the radio button for Create the application from a DAA or EAR file and click the Browse button.4. Navigate to the folder containing the file jv.helloworld2.soa.daa, click the DAA, and click Open.5. In the Application Name field, type phonebook.6. In the Environment Name drop-down list, select DevEnvironment.7. Choose an application folder.8. Click Next.9. Choose to import the listed features and click Next.10. Check the checkbox for the node where you want to deploy your application and 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 phonebook application is added to the Applications list with Runtime State Not Deployed. Thespecified resource templates are imported into the Administrator database.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Phonebook Application | 55

  • Create an HTTP Connector Resource Template

    Procedure

    Follow the steps in Create an HTTP Connector Resource Template on page 32. In the Name field, typephonebookConnector. In the Port field, type 9098.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    56 | How to Deploy and Run the Phonebook Application

  • Create and Install the HTTP Connector Resource Instance

    Procedure

    Follow the steps in Create and Install the HTTP Connector Resource Instance on page 33. Use the templatephonebookConnector.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Phonebook Application | 57

  • Create and Install the JDBC Shared Resource Instance

    Procedure

    Follow the steps in Create and Install the HTTP Connector Resource Instance on page 33. Use the templatehsqldb and specify the instance name hsqldb.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    58 | How to Deploy and Run the Phonebook Application

  • Distribute the Phonebook Application

    Procedure

    Follow the steps in Distribute the Hello World Application on page 34. Click the phonebook applicationand the jv.phonebook.soa component.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Phonebook Application | 59

  • Deploy and Start the Phonebook Application

    Procedure

    1. Click Deploy.The application is deployed and started. If you have completed Create a UDDI Server in Administratoron page 19, the WSDL file is published in the UDDI server.

    2. Click to refresh the display.The Runtime State changes to Starting and the Action History changes to In Progress (Deploy).

    3. Click to refresh the display.The Runtime State changes to Running and the Action History changes to Deploy with Start Successful.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    60 | How to Deploy and Run the Phonebook Application

  • Generate the Phonebook WSDL File

    Procedure

    Follow the steps in Generate the Hello World WSDL File on page 36. Click the PhonebookPT service,click the PhonebookSOAP binding, and name the WSDL file phonebook.wsdl.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Phonebook Application | 61

  • Invoke the Phonebook Service

    Procedure

    1. Apply the steps in Invoke the Hello World Service on page 37 to phonebook.wsdl.2. Click the addPhone node. In the Actions pane, enter values in the fields firstName: Joe, lastName: Doe,

    and phone: 111-1111.The Status pane displays:AddPhoneResponseentryId (string): 0

    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:GetPhoneResponseoutentryId (string): 0

    firstName (string): Joe

    lastName (string): Doe

    phone (string): 111-1111

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    62 | How to Deploy and Run the Phonebook Application

  • Chapter

    7How 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

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Complete Hello World Web Application Prerequisites

    Procedure

    In TIBCO Business Studio, create a distributed application archive (DAA) by following the instructionsin the How To Create and Package a Hello World Web Application TIBCO Business Studio cheat sheetor extract webapp.helloworld.soa/Deployment Artifacts/webapp.helloworld.soa.daa fromhelloworldwebapp.zip.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    64 | How to Deploy and Run the Hello World Web Application

  • Create the Hello World Web Application

    Procedure

    1. Click Applications.The Applications list displays.

    2. Click the New New Application.The New Application wizard displays.

    3. Select the radio button for Create the application from a DAA or EAR file and click the Browse button.4. Navigate to the folder containing the file webapp.helloworld.soa.daa, click the DAA, and click Open.5. In the Application Name field, replace the default name with helloworldwebapp.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 Save and Exit.

    helloworldwebapp is added to the Applications list with Runtime State Not Deployed.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Web Application | 65

  • Create an HTTP Connector Resource Template

    Procedure

    Follow the steps in Create an HTTP Connector Resource Template on page 32. In the Name field, typeWebAppHttpConnectorTemplate. In the Port field, type 9099.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    66 | How to Deploy and Run the Hello World Web Application

  • Create and Install the HTTP Connector Resource Instance

    Procedure

    Follow the steps in Create and Install the HTTP Connector Resource Instance on page 33. Use the templateWebAppHttpConnectorTemplate and specify the instance name webAppHttpConnector.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Web Application | 67

  • Distribute the Hello World Web Application

    Procedure

    Follow the steps in Distribute the Hello World Application on page 34. Click the helloworldwebappapplication and the webapp.helloworld.soa component.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    68 | How to Deploy and Run the Hello World Web Application

  • Deploy and Start the Hello World Web Application

    Procedure

    1. Click Deploy.The application is deployed and started. If you have completed Create a UDDI Server in Administratoron page 19, the WSDL file is published in the UDDI server.

    2. Click to refresh the display.The Runtime State changes to Starting and the Action History changes to In Progress (Deploy).

    3. Click to refresh the display.The Runtime State changes to Running and the Action History changes to Deploy with Start Successful.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Hello World Web Application | 69

  • Invoke the Hello World Web Application

    Procedure

    In a browser, open the location: http://localhost:9099/helloworld/sayHello?firstName=Jim.The response is: Hi Jim! This is the Web App component.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    70 | How to Deploy and Run the Hello World Web Application

  • Chapter

    8How to Deploy and Run the Content-Based RoutingMediation Application

    This how-to describes how to deploy and run the content-based routing mediation application in TIBCO ActiveMatrixAdministrator.

    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

    TIBCO ActiveMatrix Service Grid Administration Tutorials

  • Create the Routing and Target Service Mediation Applications

    Procedure

    1. Click Applications.2. Click the New New Application.

    The New Application wizard displays.3. Select the radio button for Create the application from a DAA or EAR file and click the Browse button.4. Navigate to the folder

    TIBCO_HOME\amx_it_mediation\3.4\samples\ContentBasedRouting\mediation.querygds.route.soa\DeploymentArtifacts\ 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 theresource 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 usethe DAATIBCO_HOME\amx_it_mediation\3.4\samples\TargetService\targetservice.soa\DeploymentArtifacts\targetservice.mediationsamples.daa.The targetservice application is added to the Applications list with Runtime State Not Deployed.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    72 | How to Deploy and Run the Content-Based Routing Mediation Application

  • Create HTTP Connector Resource Templates

    Procedure

    1. Select Shared Objects > Resource Templates .2.

    Click .3. In the Name field, type httpConnector.4. In the Type drop-down list, select HTTP Connector.5. Accept the default Machine Name.6. In the Port field, type 8777.7. Click Save.8. Repeat the preceding steps for a template named httpConnectorTargetService with port 8666.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Content-Based Routing Mediation Application | 73

  • Create and Install Resource Instances

    Procedure

    1. Select Infrastructure > Hosts .The Hosts list displays.

    2. Click the Resource Instances tab.The All Instances list displays.

    3. Click New.The New Resource Instances dialog displays.

    4. In the Resource Templates list, click the httpConnector row.The Instance Name field is set to httpConnector.

    5.In the Available Nodes list at the bottom, click DevNode and click .The node moves to the Selected Nodes list.

    6. Click Save and Close.The httpConnector resource instance is added to the All Instances table with status NOT_INSTALLED.

    7.Click the row containing httpConnector and click .The Action History changes to In Progress (Install).

    8. Click until the status changes to Running.9. Repeat the preceding steps to create and install resource instances from the following resource templates:

    httpConnectorTargetService HttpClient_querygds.soap.binding HttpClient_querygdsasia.soap.binding HttpClient_querygdseurope.soap.binding HttpClient_querygdsus.soap.binding

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    74 | How to Deploy and Run the Content-Based Routing Mediation Application

  • Distribute the Routing and Target Service Applications

    Procedure

    1. Click Applications.2. In the Applications list, click querygds.3. Click the Distribution tab.4.

    In the Available Nodes list, click DevNode and click .The node moves to the Selected Nodes list.

    5. Click Save.6. Repeat the preceding steps for the targetservice application.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Content-Based Routing Mediation Application | 75

  • Deploy and Start the Routing and Target Service Applications

    Procedure

    1. In the Applications list, select querygds and targetservice.2. Click Deploy.

    The applications are deployed and started.3. Click to refresh the display.

    The Runtime State changes to Starting and the Action History changes to In Progress (Deploy).4. Click to refresh the display.

    The Runtime State changes to Running and the Action History changes to Deploy with Start Successful.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    76 | How to Deploy and Run the Content-Based Routing Mediation Application

  • Generate the Routing WSDL File

    Procedure

    1. Click the Configuration tab.2. Expand the querygds node.3. Click the QueryGDS service.

    The service details display on the right.4. Click the Bindings link.

    The service's binding details display.5. In the list of bindings, expand SOAPService_Binding1.

    The list of nodes on which the binding is deployed displays below.6. In the node list, click DevNode.

    The Generate WSDL button activates.7. Click Generate WSDL.

    The WSDL document representing the deployed service displays.8. Save the WSDL file with the name QueryGDS_gen.wsdl in the ConcreteWSDLs project in TIBCO Business

    Studio.

    TIBCO ActiveMatrix Service Grid Administration Tutorials

    How to Deploy and Run the Content-Based Routing Mediation Application | 77

  • ContentsImportant InformationPrefaceChanges from the Previous Release of this GuideTIBCO Product DocumentationOther TIBCO Product DocumentationTypographical ConventionsConnecting with TIBCO Resources

    OverviewTutorial PrerequisitesSet Up the Runtime EnvironmentCreate a UDDI Server in AdministratorConfigure Administrator Command-Line PropertiesSet Up the Service Invocation Environment

    How to Configure LoggingCreate a Logging AppenderNavigate to a Logging Configurations ListCreate a Logging ConfigurationApply a Logging Configuration

    How to Deploy and Run the Hello World ApplicationComplete Hello World PrerequisitesCreate the Hello World ApplicationCreate an HTTP Connector Resource TemplateCreate and Install the HTTP Connector Resource InstanceDistribute the Hello World ApplicationDeploy and Start the Hello World ApplicationGenerate the Hello World WSDL FileInvoke the Hello World ServiceHow to View the Hello World Service in the UDDI Server

    How to Deploy and Run the Enhanced Hello World ApplicationComplete Enhanced Hello World PrerequisitesDeploy and Start the Date Manager ApplicationCreate the Hello World ApplicationCreate an HTTP Connector Resource TemplateCreate and Install the HTTP Connector Resource InstanceCreate and Install the HTTP Client Resource InstanceDistribute the Enhanced Hello World ApplicationDeploy and Start the Enhanced Hello World ApplicationGenerate the Hello World WSDL FileInvoke the Hello World Service

    How to Deploy and Run the Phonebook ApplicationComplete Phonebook PrerequisitesCreate the Phonebook ApplicationCreate an HTTP Connector Resource TemplateCreate and Install the HTTP Connector Resource InstanceCreate and Install the JDBC Shared Resource InstanceDistribute the Phonebook ApplicationDeploy and Start the Phonebook ApplicationGenerate the Phonebook WSDL FileInvoke the Phonebook Service

    How to Deploy and Run the Hello World Web ApplicationComplete Hello World Web Application PrerequisitesCreate the Hello World Web ApplicationCreate an HTTP Connector Resource TemplateCreate and Install the HTTP Connector Resource InstanceDistribute the Hello World Web ApplicationDeploy and Start the Hello World Web ApplicationInvoke the Hello World Web Application

    How to Deploy and Run the Content-Based Routing Mediation ApplicationCreate the Routing and Target Service Mediation ApplicationsCreate HTTP Connector Resource TemplatesCreate and Install Resource InstancesDistribute the Routing and Target Service ApplicationsDeploy and Start the Routing and Target Service ApplicationsGenerate the Routing WSDL File