Вы находитесь на странице: 1из 28

Title Page

Getting Started with the webMethods Product Suite and Terracotta

Version 8.2

March 2012

Copyright

This document applies to webMethods Product Suite Version 8.2 and to all subsequent releases. Specifications contained herein are subject to change and these changes will be reported in subsequent release notes or new editions. Copyright 2012 Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, United States of America, and/or their licensors. Detailed information on trademarks and patents owned by Software AG and/or its subsidiaries is located at http://documentation.softwareag.com/legal/. Use of this software is subject to adherence to Software AG's licensing conditions and terms. These terms are part of the product documentation, located at http://documentation.softwareag.com/legal/ and/or in the root installation directory of the licensed product(s). This software may include portions of third-party products. For third-party copyright notices and license terms, please refer to License Texts, Copyright Notices and Disclaimers of Third-Party Products. This document is part of the product documentation, located at http://documentation.softwareag.com/legal/ and/or in the root installation directory of the licensed product(s).

Document ID: WEBM-TCGS-82SP2-20120331

Table of Contents
About this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Document Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Documentation Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Online Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. webMethods Products that Use the Terracotta Server Array . . . . . . . . . . . . . . . . . . . . The webMethods Product Suite and Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using Terracotta to Create Very Large In-Memory Caches with BigMemory . . . . . . . . Using a Terracotta Server Array to Share Cached Data Among Applications . . . . . . . System Caches Used by the webMethods Product Suite . . . . . . . . . . . . . . . . . . . . . . How webMethods Integration Server Uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods Event Server Uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods Mediator uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods Trading Networks uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods eStandards Modules use Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . How CentraSite Uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. Licensing Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . An Overview of Licensing When Using Terracotta with webMethods . . . . . . . . . . . . . . . . . Installing the Terracotta License File on a webMethods Product . . . . . . . . . . . . . . . . . . . . What to do if a Terracotta License Key Already Resides in the common.conf Folder . . . . . 3. Installing the Terracotta Server Array for Use with webMethods Products . . . . . . . . . Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing and Configuring the Terracotta Server Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the Terracotta Program Files and License Key . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Terracotta Server Array for your webMethods Product . . . . . . . . . . . . . . . The Location of the tc-config File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 5 6 9 10 10 11 12 12 13 14 14 15 15 17 18 18 18 21 22 22 22 25 25 27

Getting Started with the webMethods Product Suite and Terrracotta 8.2

Getting Started with the webMethods Product Suite and Terrracotta 8.2

About this Guide


This guide provides an introduction to the ways in which the webMethods product suite uses the Terracotta Server Array. The guide also describes client-side licensing requirements and provides general instructions for installing and setting up the Terracotta Server Array.

Document Conventions
Convention Bold Narrowfont UPPERCASE Italic Description Identifies elements on a screen. Identifies storage locations for services on webMethods Integration Server, using the convention folder.subfolder:service. Identifies keyboard keys. Keys you must press simultaneously are joined with a plus sign (+). Identifies variables for which you must supply values specific to your own situation or environment. Identifies new terms the first time they occur in the text. Identifies text you must type or messages displayed by the system. Indicates a set of choices from which you must choose one. Type only the information inside the curly braces. Do not type the { } symbols. Separates two mutually exclusive choices in a syntax line. Type one of these choices. Do not type the | symbol. Indicates one or more options. Type only the information inside the square brackets. Do not type the [ ] symbols. Indicates that you can type multiple options of the same type. Type only the information. Do not type the ellipsis (...).

Monospace font

{}

| [] ...

Documentation Installation
You can download the product documentation using the Software AG Installer. Depending on the release of the webMethods product suite, the location of the downloaded documentation will be as shown in the table below. For webMethods... 6.x The documentation is downloaded to... The installation directory of each product.

Getting Started with the webMethods Product Suite and Terrracotta 8.2

About this Guide

For webMethods... 7.x 8.x

The documentation is downloaded to... A central directory named _documentation in the main installation directory (webMethods by default). A central directory named _documentation in the main installation directory (Software AG by default).

Online Information
You can find additional information about Software AG products at the locations listed below. Note: The Empower Product Support Web site and the Software AG Documentation Web site replace Software AG ServLine24 and webMethods Advantage. If you want to... Access the latest version of product documentation. Find information about product releases and tools that you can use to resolve problems. See the Knowledge Center to: Read technical articles and papers. Download fixes and service packs. Learn about critical alerts. See the Products area to: Download products. Download certified samples. Get information about product availability. Access older versions of product documentation. Submit feature/enhancement requests. Go to... Software AG Documentation Web site http://documentation.softwareag.com Empower Product Support Web site https://empower.softwareag.com

Getting Started with the webMethods Product Suite and Terrracotta 8.2

About this Guide

If you want to... Access additional articles, demos, and tutorials. Obtain technical information, useful resources, and online discussion forums, moderated by Software AG professionals, to help you do more with Software AG technology. Use the online discussion forums to exchange best practices and chat with other experts. Expand your knowledge about product documentation, code samples, articles, online seminars, and tutorials. Link to external Web sites that discuss open standards and many Web technology topics. See how other customers are streamlining their operations with technology from Software AG.

Go to... Software AG Developer Community for webMethods http://communities.softwareag.com/

Getting Started with the webMethods Product Suite and Terrracotta 8.2

About this Guide

Getting Started with the webMethods Product Suite and Terrracotta 8.2

webMethods Products that Use the Terracotta Server Array


10 12 13 14 14 15 15

The webMethods Product Suite and Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods Integration Server Uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods Event Server Uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods Mediator uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods Trading Networks uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How webMethods eStandards Modules use Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How CentraSite Uses Terracotta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Getting Started with the webMethods Product Suite and Terrracotta 8.2

1 webMethods Products that Use the Terracotta Server Array

The webMethods Product Suite and Terracotta


Ehcache is a standards-based caching API that enables applications to fetch frequently used data from memory (or other nearby resource) rather than having to retrieve it from a database or other back-end system. Terracotta extends the Ehcache API to enable applications to: Create very large in-memory caches. Share cached data with other applications on the network.

This chapter provides a general overview of how components of the webMethods product suite use Ehcache and, more specifically, how they use the extensions enabled by Terracotta. The content of this chapter is designed to introduce you to Terracotta usage by various webMethods products. For detailed information, it refers you to the appropriate user guides.

Using Terracotta to Create Very Large In-Memory Caches with BigMemory


BigMemory is an extension from Terracotta that enables you to create caches that reside outside of the Java heap. Using BigMemory, you can create much larger caches than with local on-heap memory alone. You can use up to a terabyte for caching, depending on the platform you use. Caches that you create using BigMemory also perform more predictably and consistently than on-heap caches, because they are not subject to the JVM garbage-collection process. BigMemory cache resides outside of the Java heap space

10

Getting Started with the webMethods Product Suite and Terrracotta 8.2

1 webMethods Products that Use the Terracotta Server Array

webMethods products that support Ehcache for caching also support BigMemory, however, you must install a Terracotta license on the webMethods product to enable the BigMemory feature. For additional information about the BigMemory extension to Ehcache, see the sections on BigMemory in the Ehcache User Guide Version 2.4 at http://www.ehcache.org/documentation/2.4/user-guide/preface.

Using a Terracotta Server Array to Share Cached Data Among Applications


The Terracotta Server Array is an extension to Ehcache that enables you to share a cache with other applications. With this extension, cache is maintained centrally on a Terracotta Server Array and clients access the cache via the network. A Terracotta Server Array consists of one or more Terracotta Servers. The data in a cache is spread across the servers using a technique called striping. Each server in the array can be mirrored for high availability. Using a Terracotta Server Array, you can cache multiple terabytes of data. A Terracotta Server Array enables applications to share cached data

Getting Started with the webMethods Product Suite and Terrracotta 8.2

11

1 webMethods Products that Use the Terracotta Server Array

Most webMethods products that use Ehcache also support the use of a Terracotta Server Array. To use these products with a Terracotta Server Array, you must install a Terracotta license on the webMethods product. For additional information about the Terracotta Server Array, see the Ehcache Distributed Cache User Guide Version 2.4 at http://www.ehcache.org/documentation/2.4/terracotta/ and the Terracotta product documentation at http://terracotta.org/legacy/3.5.0.html. Important! The webMethods product suite supports certain versions of the Terracotta Server Array. It is important to ensure that the Terracotta client libraries installed with your webMethods product are compatible with the version of the Terracotta Server Array you are using. If you are using a newly supported release of the Terracotta Server Array, it might be necessary to apply a fix that installs compatible Terracotta client libraries on your webMethods product.

System Caches Used by the webMethods Product Suite


Many webMethods products cache data for their own internal processes. The caches that they use internally are called system caches. For a list of the system caches that webMethods products use, see the webMethods System Cache Specifications on the Software AG Documentation Web Site. You can use the information in this document as input for sizing efforts related to BigMemory or the Terracotta Server Array.

How webMethods Integration Server Uses Terracotta


Integration Server uses Terracotta for the following purposes: For creating public caches. Public caches are user-defined caches that integration solutions running your Integration Server can use. Integration Server provides builtin services that you use to build integration solutions that use caching. If an Integration Server is equipped with the proper Terracotta licenses, you can create public caches that reside in BigMemory or on the Terracotta Server Array. For more information about how Integration Server uses Terracotta with public caches, see the chapter on Ehcache in Administering webMethods Integration Server. For more information about the services you use to add caching to an integration solution, see the pub.cache services in the webMethods Integration Server Built-In Services Reference. For clustering. When you cluster Integration Servers using Terracotta, the members of the cluster share data using caches on the Terracotta Server Array. Each Integration Server in the cluster connects to the Terracotta Server Array to store and retrieve items from the shared caches.

12

Getting Started with the webMethods Product Suite and Terrracotta 8.2

1 webMethods Products that Use the Terracotta Server Array

Members of the cluster use caches on the Terracotta Server Array to share data

For more information about how Integration Server uses Terracotta for clustering, see the webMethods Integration Server Clustering Guide.

How webMethods Event Server Uses Terracotta


The Event Server uses Terracotta for the following purposes: For caching tables and views from a database. For faster access to data from a database, Event Server enables you to cache the tables and views (database sources) associated with a query. When you cache a database source, Event Server uses the cached table or view to compute the results of a query instead of retrieving the data from the database. When you configure the data source to use a cache, you specify how frequently you want Event Server to refresh the contents of the cache. Note: When you run Event Server in high-availability mode, you must cache the database sources that your queries use. If your Event Server is equipped with the appropriate Terracotta licenses, you can cache a database source in BigMemory or on a Terracotta Server Array. For more information about using Terracotta to cache database sources on an Event Server, see the chapter on combining events with data from a database in Continuous Query Development Help. For high-availability. In high-availability mode, two instances of Event Server operate in a master-and-slave configuration. Each instance performs the same continuous queries on the same input streams. If one instance of Event Server fails, the other instance continues processing. The Event Servers use the Terracotta Server Array to store information they need to synchronize with one another during the start up process.

Getting Started with the webMethods Product Suite and Terrracotta 8.2

13

1 webMethods Products that Use the Terracotta Server Array

The master and the slave use the Terracotta Server Array to store data needed for synchronization

For more information about how Event Server uses Terracotta in a high-availability configuration, see the chapter on high availability in Administering webMethods Event Server.

How webMethods Mediator uses Terracotta


webMethods Mediator uses Terracotta to cache the virtual services that you deploy to it. It also uses Terracotta to cache many of the artifacts associated with the virtual services (for example, performance metrics, policies, consumer applications, and registered consumers). When you install webMethods Mediator on a cluster of Integration Servers, webMethods Mediator maintains these caches on the Terracotta Server Array. For more information about the system caches that webMethods Mediator uses, see the webMethods System Cache Specifications on the Software AG Documentation Web Site.

How webMethods Trading Networks uses Terracotta


Trading Networks creates a system cache in which it stores session-based query results. When you use Trading Networks in a clustered environment, it maintains this cache on the Terracotta Server Array. For more information about the system caches that Trading Networks uses, see the webMethods System Cache Specifications on the Software AG Documentation Web Site.

14

Getting Started with the webMethods Product Suite and Terrracotta 8.2

1 webMethods Products that Use the Terracotta Server Array

How webMethods eStandards Modules use Terracotta


The following webMethods eStandards modules create system caches in which they store transaction-related data and/or configuration information related to the use of the module in a cluster. Chem eStandards FIX ebXML RosettaNet When you use these modules in a clustered environment, they maintain their system caches on theTerracotta Server Array. For more information about the system caches that these adapters use, see the webMethods System Cache Specifications on the Software AG Documentation Web Site.

How CentraSite Uses Terracotta


For performance purposes, CentraSite caches the registry objects that are returned by search and get operations. Doing this enables CentraSite to quickly retrieve these objects from memory when they are requested again. If your CentraSite server is equipped with the proper license, you can configure it to cache registry objects in BigMemory. Note: CentraSite does not support caching on the Terracotta Server Array. For more information about using Terracotta with CentraSite, see the caching topics in the CentraSite user documentation.

Getting Started with the webMethods Product Suite and Terrracotta 8.2

15

1 webMethods Products that Use the Terracotta Server Array

16

Getting Started with the webMethods Product Suite and Terrracotta 8.2

Licensing Requirements
18 18 18

An Overview of Licensing When Using Terracotta with webMethods . . . . . . . . . . . . . . . . . . . . . Installing the Terracotta License File on a webMethods Product . . . . . . . . . . . . . . . . . . . . . . . . . What to do if a Terracotta License Key Already Resides in the common.conf Folder . . . . . . . . .

Getting Started with the webMethods Product Suite and Terrracotta 8.2

17

2 Licensing Requirements

An Overview of Licensing When Using Terracotta with webMethods


If your webMethods product is licensed to use BigMemory or the Terracotta Server Array, you will receive a Terracotta client-side license key from Software AG. You must install this key to enable these features in your webMethods product.

Installing the Terracotta License File on a webMethods Product


The Terracotta license resides in a file called terracotta-license.key. Use the following procedure to install this file with your webMethods product. To install the Terracotta license key on a webMethods product 1 On the machine where you have installed the webMethods product, navigate to the following directory and check for the presence of a terracotta-license.key file. Software AG_directory\common\conf If the directory already contains a terracotta-license.key file, review the information in What to do if a Terracotta License Key Already Resides in the common.conf Folder on page 18. Do not proceed to the next step unless you have determined whether you should replace the license key that already exists in this folder. 2 Copy the terracotta-license.key file to the Software AG_directory\common\conf folder. Important! Do not change the name of the license file. 3 If the webMethods product that requires the Terracotta license is already running, restart it to put the license key into effect.

What to do if a Terracotta License Key Already Resides in the common.conf Folder


If you install multiple webMethods products in the same Software AG_directory, it is possible that two or more products will each have their own Terracotta license keys. In this case, you might discover that the Software AG_directory\common\conf folder already contains a key for one of the installed products. Under these circumstances, you are permitted to select one license key for the Terracottalicensed products in the Software AG_directory to use.

18

Getting Started with the webMethods Product Suite and Terrracotta 8.2

2 Licensing Requirements

Note: You are only permitted to use a Terracotta license file with a webMethods product for which you have purchased a Terracotta license. Using the license with a nonlicensed product is prohibited. To determine which license key to use, examine each key file with a text editor. The file will describe the capabilities that the key enables. Install the key file that satisfies the needs of the webMethods product with the most demanding licensing requirements.

Getting Started with the webMethods Product Suite and Terrracotta 8.2

19

2 Licensing Requirements

20

Getting Started with the webMethods Product Suite and Terrracotta 8.2

Installing the Terracotta Server Array for Use with webMethods Products
22 22 22 25

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing and Configuring the Terracotta Server Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the Terracotta Program Files and License Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Terracotta Server Array for your webMethods Product . . . . . . . . . . . . . . . . . . . .

Getting Started with the webMethods Product Suite and Terrracotta 8.2

21

3 Installing the Terracotta Server Array for Use with webMethods Products

Introduction
This chapter outlines the steps for installing and configuring a Terracotta Server Array. You must install and configure the Terracotta Server Array to use the clustering, highavailability, and/or shared-caching features in your webMethods product. Note: The version of Terracotta software that you install on the Terracotta Server Array must be compatible with the version of the Terracotta client libraries that your webMethods product uses.

Installing and Configuring the Terracotta Server Array


To install and configure the Terracotta Server Array, do the following: 1 Decide how many Terracotta servers will make up the array and whether or not you will mirror those servers. To guide your decision, review the sections on high availability and architecture in the product documentation for the Terracotta Server Array or consult your Software AG representative. Note: For a list of the platforms supported by Terracotta server, see the Server Information section in the Terracotta 3.5.0 Platform Support document. 2 Install the Terracotta program files and license key on each machine in the server array as described in Installing the Terracotta Program Files and License Key on page 22. Configure the Terracotta Server Array as described in Configuring the Terracotta Server Array for your webMethods Product on page 25.

Installing the Terracotta Program Files and License Key


Use the following procedure to download and install the Terracotta program files from the Software Download Center on Empower and then install the license key.

22

Getting Started with the webMethods Product Suite and Terrracotta 8.2

3 Installing the Terracotta Server Array for Use with webMethods Products

To install the Terracotta program files and license key 1 2 Log on to Empower and go to the Software Download Center. From the product list (shown below), select the appropriate version of Terracotta and download its archive file.

If a Software AG installation folder already exists on your machine, create a subdirectory called Terracotta within it. If a Software AG installation folder does not exist, create the following directory structure on your machine: /SoftwareAG/Terracotta

Getting Started with the webMethods Product Suite and Terrracotta 8.2

23

3 Installing the Terracotta Server Array for Use with webMethods Products

Extract the contents of the archive file into the Terracotta folder that you created in the step above. Note: The program files are distributed in a compressed archive file (a tar.gz file). To install the files correctly, you must decompress the gz file and then extract the contents of the tar file into the Terracotta folder. When you are finished, the Terracotta folder should look as follows:

Copy the Terracotta license key to the Terracotta installation directory.

Note: This step places the license key in its default location. If required, you can install the key in a different folder and specify its location. For those procedures, see the license file section in the Terracotta product documentation. 6 Repeat steps 3 through 5 on each server (including mirrors) in the array.

24

Getting Started with the webMethods Product Suite and Terrracotta 8.2

3 Installing the Terracotta Server Array for Use with webMethods Products

Configuring the Terracotta Server Array for your webMethods Product


The configuration and behavior of the Terracotta Server Array is specified by parameters in a configuration file called the tc-config file. This file identifies the servers that make up the array and specifies whether the servers are mirrored. This file also contains parameters relating to the healthchecker (a process that monitors the connections between the Terracotta Server Array and its clients) and specifies certain behaviors of the clients that connect to the array. The tc-config file is not installed with the Terracotta program files. You must create this file and configure it for your particular server array. For information about creating and configuring the tc-config file, see the section on configuring the Terracotta Server Array in the Terracotta product documentation. You can also refer to the following sample files that are installed with your Terracotta server. The sample tc-config files in TerracottaHome/config-samples The reference tc-config file located in TerracottaHome/platform/doc Important! webMethods products that use the Terracotta Server Array often require specific settings in the tc-config file. When you create the tc-config file, always check the documentation for your particular webMethods product to determine whether there are specific tc-config settings that it requires.

The Location of the tc-config File


By default, a Terracotta server expects to find the tc-config file in the TerracottaHome/bin folder (the same folder as the startup script). If you maintain the tc-config file in the default location, you must place an identical copy of the tc-config file in the TerracottaHome/bin folder of every server in the array. (Typically, you create the tc-config file on one server and then copy it to the other servers in the array.) Alternatively, you can place the tc-config file in a central location where all servers in the array can access it. If you use this approach, you must specify the location of the tc-config file when you invoke the start-up script on each server. For information about specifying the location of the tc-config file, see the section on configuring the Terracotta Server Array in the Terracotta product documentation.

Getting Started with the webMethods Product Suite and Terrracotta 8.2

25

3 Installing the Terracotta Server Array for Use with webMethods Products

26

Getting Started with the webMethods Product Suite and Terrracotta 8.2

Index
C
conventions used in this document 5

D
documentation conventions used 5 using effectively 5

P
program code conventions in this document 5

T
typographical conventions in this document 5

Getting Started with the webMethods Product Suite and Terrracotta 8.2

27

28

Getting Started with the webMethods Product Suite and Terrracotta 8.2

Вам также может понравиться