Professional Documents
Culture Documents
GHTester Tibco
GHTester Tibco
GHTester Tibco
TIBCO Plugin
Green Hat 107-111 Fleet Street London EC4A 2AB +44 (0)20 7936 9303 www.greenhatsoftware.com
Contents
1 Introduction...................................................................................................................... 3 1.1 1.2 1.3 1.4 1.5 1.6 2 2.1 Purpose........................................................................................................... 3 Intended Audience............................................................................................ 3 Scope.............................................................................................................. 3 Typographical Conventions ................................................................................ 3 Related Documentation ..................................................................................... 3 Terms and Definitions ....................................................................................... 4 Prerequisites .................................................................................................... 5 2.1.1 2.1.2 3 3.1 3.2 3.3 TIBCO Rendezvous Messaging ................................................................ 5 TIBCO Active Enterprise Messaging ......................................................... 5
Installation ....................................................................................................................... 5
TIBCO Rendezvous Transport .......................................................................................... 6 Product compatibility......................................................................................... 6 Libraries .......................................................................................................... 6 3.2.1 3.3.1 3.3.2 3.3.3 Windows 2000 & XP .............................................................................. 6 Reliable RV........................................................................................... 7 Certified Messaging ............................................................................... 7 Distributed Queues................................................................................ 8 Transport Configuration..................................................................................... 7
TIBCO Active Enterprise Transport .................................................................................. 9 4.1 4.2 4.3 Product compatibility......................................................................................... 9 Libraries .......................................................................................................... 9 4.2.1 4.3.1 4.3.2 4.3.3 4.4 4.5 Windows 2000 & XP .............................................................................. 9 Project Directory ................................................................................. 11 Local Repository.................................................................................. 11 Server Repository ................................................................................ 11 Transport Configuration................................................................................... 10
TIBCO Multi-file projects.................................................................................. 12 Using Schema elements .................................................................................. 13 4.5.1 4.5.2 4.5.3 4.5.4 Sequence types .................................................................................. 13 Any types........................................................................................... 13 Union Types ....................................................................................... 14 Setting the Containers Value Action ...................................................... 14
Creating GH Tester Projects from BusinessWorks ........................................................ 15 5.1 5.2 5.3 5.4 5.5 5.6 The BusinessWorks Wizard .............................................................................. 15 Choose your BusinessWorks project .................................................................. 16 Selecting BusinessWorks Files .......................................................................... 17 GH Tester Project Settings ............................................................................... 18 GH Tester Environment Variables ..................................................................... 19 Confirming the details and viewing the project ................................................... 20 No formatter available in publisher or subscriber ................................................ 21 Unable to connect to daemon........................................................................... 21 Overlapping subjects error............................................................................... 21 Why aren't my class definitions visible............................................................... 21 Why cant my AE transport use BusinessWorks 5 projects.................................... 21
Introduction
1.1 Purpose
This guide describes how to configure and run GH Tester 3.2 with the TIBCO plugin. This provides support for TIBCO Rendezvous and TIBCO Active Enterprise messaging formats. The guide also shows you how to create a GH Tester project from a BusinessWorks 5 project.
1.3 Scope
This document is concerned only with the Green Hat Softwares tool GH Tester 3.2, its configuration and use alongside TIBCO technologies. If you wish to familiarise yourself with these technologies please refer to documents provided by the relevant companies or individuals.
Italic
Bold 9pt
Version No./Date
3.2 3.2
Description
A bit of data constituent to a message. Most fields are scalar and therefore unitary, equivalent to data attributes. Vector fields are an aggregation of fields both scalar and vector, and are usually referred to as Messages. See also Message. A unit of information made up of a header consisting of metainformation and a body consisting of the message data. The computer on which a software process runs. A messaging paradigm whereby a messaging network consists of Publishers and Subscribers. Informally, the messaging software in use. For instance, TIBCO Rendezvous, TIBCO ActiveEnterprise, IBM MQ (JMS). Making a message (data) available on a message channel. Receiving a stream of messages (data) on a given message channel. A user-meaningful name for identifying messages on TIBCO transports. E.g., the subject EQ.IBM might identify all pricing data about IBM stocks, while EQ.IBM.N might identify price data from the New York Stock Exchange only. See also: JMS queue, JMS topic. A host computer on a network shared by more than one user. A user-meaningful name for identifying data objects. For example, the subject EQ.IBM might identify all pricing data about IBM stocks, while EQ.IBM.N might identify price data from the New York Stock Exchange only. A software toolkit for creating distributed applications that can inter-operate with TIBCO servers and applications on a TIBCO network. The product includes a communications daemon and APIs that define protocols for publish/subscribe and request/reply data distribution and exchange. It uses the subject-based addressing messaging technique for data delivery, and defines rules for supported subject naming formats. A TIBCO proprietary format for messages contained within the Rendezvous
Message
Host Publisher-Subscriber
Transport
Publishing Subscribing
Subject
Server Subject
TIBCO Rendezvous
TIBCO AE Message
2 Installation
2.1 Prerequisites
The software has been developed and tested on the Windows 2000 and Windows XP platforms but should work on any platform that supports Java. It is dependent upon the following software: JRE 1.4.x. Installation of this is beyond the scope of this document. Please see Sun Microsystems Java web site at http://java.sun.com/ for details. Note that UNIX based systems may need additional patches loaded to support the newer Java releases, again please refer to the Sun documentation. If you are installing a version of GH Tester that contains a java virtual machine then an appropriate JRE will be automatically installed within the product install directory and used when the program is executed. The JAVA_HOME environment variable is set to the path of the installed JRE.
2.1.1
2.1.2
To use TIBCO Active Enterpirse messaging, one or more of the following product sets should be installed and configured: TIBCO/Integration Manager 4.0 or greater. TIBCO/BusinessWorks 5.0 or greater. TIBCO/TRA 5.X
3.2 Libraries
3.2.1 Windows 2000 & XP
If using TIBCO/Rendezvous v6 or v7 the following files should be made available to GH Tester by using the Library Manager application: JAR file tibrvj.jar Usual location C:\Tibco\TIBRV\lib
If using TIBCO/Rendezvous v6 or v7 the following entries should be made available to GH Tester by using the Library Manager application: JAR file tibrvj.jar Usual location C:\Tibco\TIBRV\lib
3.3.1
Reliable RV
The service name, number or default entry that the daemon should listen on. Specifies the network interface that the daemon should connect on. Tells GH Tester how to connect to the Rendezvous daemon.
3.3.2
Certified Messaging
To send and receive messages using the certified delivery features of Rendezvous, GH Tester utilises a CM transport, this adds additional information to the normal transport such as the CM name and a ledger file for persisting the tracking details. The CM transport settings are used in addition to the standard RV Service, Network and Daemon which are described above.
The correspondence name used to identify this RVCM transport to other RVCM transports (Note, this parameter is mandatory) Specifies a Relay Agent that is used for certified delivery when persistent correspondence is only connecting to the network intermittently.
Specifies the location of the file where all the correspondence between RVCM transports are stored. Checking this box will make any operations in the transport daemon that update the ledger file block until all the data has been written to the file. Otherwise all changes are written asynchronously
Require Old Messages Checking this box will save all messages sent to the ledger file so that in the event of a network failure an RVCM transport can look at the ledger file when reconnected and continue where it left off.
Further details on these parameters can be found in the appropriate vendor administration guide.
3.3.3
Distributed Queues
To configure a transport to become a member of an RVCM distributed queue additional parameters need to be provided. The standard Rendezvous ones are again required and are described above.
Queue Name Worker Weight Worker Tasks Scheduler Weight Scheduler Heartbeat Scheduler Activation
The unique identifier of the queue this transport is associated with (Mandatory parameter) In a queue, tasks get assigned to workers with the greatest worker weight and this is where that value is set. Specifies the maximum amount of tasks this transport can carry out before delegating to other workers. If a new scheduler is required then potential schedulers with the greatest Scheduler Weight value will be assigned next. The delay period between the broadcast of heartbeat signals. Specifies the time that an inactive member waits before becoming active when a heartbeat signal is lost.
Important Note: When using a DQ based transport within GH Tester, any publish operations will be performed on the underlying Plain RV transport.
4.2 Libraries
4.2.1 Windows 2000 & XP
If using TIBCO/MessageBroker the following files should be made available to GH Tester by using the Library Manager application: JAR file xmlsdk.jar maverick4.jar TibRepoClient4.jar TibRepoToolkit4.jar Usual location c:\TIBCO\MessageBroker\java c:\TIBCO\MessageBroker\java c:\TIBCO\MessageBroker\java c:\TIBCO\MessageBroker\java
If using TIBCO/IntegrationManager 4.0 / 4.1 the following files should be made available to GH Tester by using the Library Manager application: JAR file xmlsdk.jar maverick4.jar TibRepoClient4.jar TibRepoToolkit4.jar Usual location c:\TIBCO\IM\java c:\TIBCO\IM\java c:\TIBCO\IM\java c:\TIBCO\IM\java
If using TIBCO/IntegrationManager 4.5 the following files should be made available to GH Tester by using the Library Manager application: JAR file xmlsdk.jar maverick4.jar TibRepoClient4.jar TibRepoToolkit4.jar Usual location c:\TIBCO\IM450\java c:\TIBCO\IM450\java c:\TIBCO\IM450\java c:\TIBCO\IM450\java
If using TIBCO/IntegrationManager 5.0 the following files should be made available to GH Tester by using the Library Manager application: JAR file xmlsdk.jar TIBCOrt.jar Usual location c:\TIBCO\IM\5.0\java c:\TIBCO\IM\5.0\java
If using TIBCO/BusinessWorks v5 the following files should be made available to GH Tester by using the Library Manager application: JAR file TIBCOrt.jar TIBCOxml.jar TIBCrypt.jar entbase.jar Usual location c:\TIBCO\tra\5.1\lib c:\TIBCO\tra\5.1\lib c:\TIBCO\tra\5.1\lib c:\TIBCO\tpcl\5.1\lib\entrust
If using TIBCO/Repository and TIBCO/AdapterSDK the following files should be made available to GH Tester by using the Library Manager application: JAR file xmlsdk.jar TIBRepoClient4.jar TIBRepoToolkit4.jar Maverick4.jar Usual location c:\TIBCO\Repository\jars c:\TIBCO\Repository\jars c:\TIBCO\Repository\jars c:\TIBCO\Adapter\SDK\java
The URL detailing the repository to connect to can be constructed by using the select button to find a local or remote repository instance, or BusinessWorks project.
10
4.3.1
Project Directory
To connect to a Business Works file based project select the project using the Project Directory option and navigate to the desired project.
4.3.2
Local Repository
To connect to a local file-based repository type the path in the text area shown. Alternatively click the Browse button and navigate to the desired repository in the file system.
Note: multi-file projects will need to be exported to a single project file in order for GH Tester to access them, details on how to do this are provided in section 4.4.
4.3.3
Server Repository
To connect to a server-based repository, select a Domain and Project Name from the available choices under the Server-Repository tab. The values available within the two combo boxes will be obtained by subscribing to information broadcast by the TIBCO Repository server processes on your network.
If the settings for these are different from the defaults provided by TIBCO then they can be edited by clicking on the Advanced... button.
11
Within the Advanced Tab you can change the Rendezvous Service, Network and Daemon settings along with the subject that should be subscribed to in order to discover what remote repositories are available. When the OK button is pressed, GH Tester will repopulate the Domain and Project boxes with the newly discovered items.
For a complete description of all the parameters, please refer to the TIBCO documentation. On first use of the transport GH Tester will connect to the repository and process all of the necessary metadata. If the repository is invalid you will be alerted via an error dialog box. If this occurs please note the error message and consult the TIBCO documentation. When GH Tester makes a successful connection to a repository, the data is cached locally. On subsequent executions of the application, the cached copy of the repository metadata will be accessed. In order to obtain to the most recent version of the repository, use the Refresh operation located on the context menu within the project browser. This will connect to the originally specified location of the repository and update the locally cached copy with the latest metadata.
Note: It is necessary to run GH Tester with TIBCO AE version 5 JAR files if you wish to connect to a BusinessWorks 5 project.
To create a single file representation of the project, within TIBCO Designer open the project that you are interested in using from GH Tester and select the Export Full Project... option from the Project menu. This will then provide you with a dialog that will allow you to export the content to either a local file or a remote repository (both of which can be subsequently accessed by GH Tester). 2006 Green Hat Consulting Ltd 23/06/2006 12
Choose an appropriate name and location for the file that you wish to create and then click on OK.
Finally you will need to confirm the file type and encoding, select the default values and again click on OK to complete the process.
You are now ready to use this project from within GH Tester.
4.5.1
Sequence types
If a class contains a member that is a sequence type then its contents are manipulated using the Add Child context menu option. This will add a new object of the chosen type inside of the AE object. This can be repeated for as many members as you wish to be sent or validated against.
4.5.2
Any types
For members that are of type Any you can change the type of the value to be sent using the Select Type context menu. This will provide you with a list of all of the types defined in the repository.
13
If you wish to change the type then the operation can be repeated to select the new type.
4.5.3
Union Types
To use Union types a combination of the above two methods can be employed to manage the content. For creation you will need to use the Add Child operation that will select an initial value to be populated within the union. Subsequently, if you wish to change the content of the field to one of the other types that are supported within the union then the Select Type operation should be used. When using the Select Type operation only the objects present under the Union submenu should be chosen. Selections from the other submenus will result in an invalid object being selected and the class being marked as invalid (as denoted by the red crosses in the message editor).
4.5.4
When a sequence, union or class is selected within a Publisher, it is possible to set the type of the value action to Process Children, Process Tag or Null. The Process Children action is the default action and when selected, all of the children of that container will also be published. If that container has no children, for example if a sequence is empty, then that container will still be sent but it will be empty. The same concept applies to the Process Tag action except that the children of that container will be populated entirely from the content of the selected tag. If the Null action is selected then this indicates that the container itself will not be sent.
When carrying out rigorous testing, it is advised that several different Test Sequences be created that use both the Process Children action and the Null action across the selected containers (especially when using Sequences and Unions). This will allow for both of the cases, where the Containers are sent but with zero or more children and where the Containers are not sent at all, to be fully explored.
14
There is an additional option on the initial screen as shown. Double-click the Create A Project From BusinessWorks entry, or select and click OK to start a guided wizard process.
The first screen provides a short summary of the steps involved so that you can ensure that you have all the details to hand.
15
From the summary screen you can see that the wizard has five steps. The first two steps are related to choosing your BusinessWorks project and selecting candidate files within that project. The final steps are for defining your settings for your new GH Tester project. Once you have prepared the information that you might need for this wizard, press the Next button to continue.
You are able to define the settings for the project at the bottom of the screen. Currently only the URL entry is used; the pointer to the directory containing your file-system based project.
To point at a project, press the Select button and this will popup the dialog which will allow you to manually enter a project directory or select one directly from the file-system.
Once you are happy that you have selected the correct BusinessWorks project directory then press the Next button.
16
GH Tester Resource Rendezvous Transport Database Connection HTTP Transport WSDL AE Transport Message Test Sequence
Example File Name a.a3t b.dbp c.a3t e.wsdl f.a3t f.ghm f.tsq -
/folder/.defaultVars
Environment
17
Once you have selected all the files that you wish to include from the BusinessWorks project, then press the Next button to start defining your GH Tester project settings.
Once you have specified where you want to create the project, press the Next button to continue with the wizard.
18
It is possible to define a number of environments, such as DEVELOPMENT and LIVE, to allow for different tag settings. You can create and remove Environments using the Add and Remove buttons. This screen will also allow you to define new variables and remove any variables that you are not interested in bringing into your GH Tester project. New variables are automatically added to each of the environments. You can also directly edit the variable name and value by double-clicking the entries as shown. 2006 Green Hat Consulting Ltd 23/06/2006 19
Once youve defined a suitable amount of Environments and confirmed that the variables are valid then press the Next button to continue to the final step of this wizard.
When you press the Finish button GH Tester will generate your new GH Tester project. Once finished, the project will be automatically launched in GH Tester.
20
6 Troubleshooting
6.1 No formatter available in publisher or subscriber
If, when using a publisher or subscriber editor, the formatter combo box is blank then it is likely that the requisite jar files haven't been included on the classpath when starting the application. Note that the Library Manager must be configured for the TIBCO AE provider, and the Enable provider checkbox must be set to on.
21