---
schema_version: "1"
id: 1e88c2d752ea8635ae563b439a95610c2329be3c114709d69e3a5599bbd78e96
title: IBM CICS Transaction Gateway Connector
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/ibm-ctg-connector/2.3/index.md
canonical_url: https://docs.mulesoft.com/jp/ibm-ctg-connector/2.3/
source_site: docs.mulesoft.com
content_type: documentation
content_hash: aa0bdb4f7b076d0f104076f435de790b5e989b7517fa9ae0ceb53e1f6566fe1d
description: MuleSoft Documentation Site
release: "2.3"
latest: true
---
# IBM CICS Transaction Gateway Connector

IBM CICS Transaction Gateway Connector バージョン 2.3

IBM CICS Transaction Gateway 用 Anypoint Connector (IBM CTG Connector) は、CICS Transaction Gateway を使用してバックエンド CICS アプリケーションとの統合を実現します。CTG は、Java プラットフォーム向けに Java 暗号化アーキテクチャ (JCA) リソースアダプターを実装することで、Java アプリケーションを Customer Information Control System (CICS) システムに接続できるようにしています。このコネクタは、Mule アプリケーションと IBM CTG の間のリンクとして機能します。

リリースノート: [IBM CICS Transaction Gateway Connector リリースノート](https://docs.mulesoft.com/jp/release-notes/connector/ibm-ctg-connector-release-notes-mule-4)​  
Exchange: [IBM CICS Transaction Gateway Connector](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-ibm-ctg-connector/)

## [](#始める前に)始める前に

この情報を使用するには、IBM CTG、Mule Runtime Engine (Mule)、Anypoint Connector、Anypoint Studio、Mule の概念、Mule フローの要素、グローバル要素に精通している必要があります。

対象リソースへの接続をテストするには、ログイン情報が必要です。

Apache Maven でこのコネクタを使用するには、 [Anypoint Exchange](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-ibm-ctg-connector/)​ の ​**\[Dependency Snippets (連動関係スニペット)\]**​ で pom.xml ファイルの連動関係情報を確認してください。

## [](#用語)用語

CICS (Customer Information Control System)

安全で拡張性が高くコスト効果に優れた環境で大量トランザクションのワークロードをサポートするエンタープライズアプリケーションサーバーの統合システム。CICS アプリケーションは、Java から COBOL まで、さまざまな言語で書かれています。

CICS リージョン

CICS によって 1 つの単位として制御される、名前の付いたリソースの集合。CICS リソースとは、タスクを実行するのに必要な、CICS システムを構成する機器またはコンポーネントです。

CICS TG (CICS Transaction Gateway)

リモートクライアントアプリケーションが CICS リージョン内のサービスを呼び出せるようにするためのクライアントおよびサーバーソフトウェアコンポーネントの集合。クライアントアプリケーションには、Java アプリケーションと非 Java アプリケーションがあります。CICS TG は、CICS TG on z/OS と CICS TG for Multiplatforms の 2 つの製品で利用できます。

COMMAREA

プログラム間でのデータの受け渡しに使用される連続したメモリのブロック。COBOL 構造のバイナリ版であり、キャラクターベースで定義されます。

ECI (External Call Interface)

CICS アプリケーションとのリンクに使用されるシンプルなリモートプロシージャーコールスタイルのインターフェース。クライアントアプリケーションと CICS との間でデータをエクスチェンジするためのデータインターフェースとしては COMMAREA またはチャネルが使用されます。

JCA

J2EE プラットフォームを CICS などの異機種エンタープライズ情報システム (EIS) に接続するための標準アーキテクチャ。EIS ベンダーは、JCA に準拠することで自社の EIS 用の標準リソースアダプターを提供することができます。リソースアダプターは、Java アプリケーションと EIS の中間層として機能し、Java アプリケーションを EIS に接続します。

## [](#studio-プロジェクトへのコネクタの追加)Studio プロジェクトへのコネクタの追加

Anypoint Studio には、Studio プロジェクトにコネクタを追加する 2 つの方法があります。Studio タスクバーの Exchange ボタンから追加するか、\[Mule Palette (Mule パレット)\] ビューから追加します。

### [](#exchange-を使用してコネクタを追加する)Exchange を使用してコネクタを追加する

1. Studio で Mule プロジェクトを作成します。
2. Studio タスクバーの左上にある Exchange アイコン ​**(X)**​ をクリックします。
3. Exchange で、​**\[Login (ログイン)\]**​ をクリックし、Anypoint Platform のユーザー名とパスワードを指定します。
4. Exchange で、「CTG」を検索します。
5. コネクタを選択して ​**\[Add to project (プロジェクトに追加)\]**​ をクリックします。
6. 画面の指示に従ってコネクタをインストールします。

### [](#studio-でコネクタに追加する)Studio でコネクタに追加する

1. Studio で Mule プロジェクトを作成します。
2. \[Mule Palette (Mule パレット)\] ビューで、​**\[(X) Search in Exchange ((X) Exchange 内を検索)\]**​ をクリックします。
3. **\[Add Modules to Project (モジュールをプロジェクトに追加)\]**​ で、検索項目に「CTG」と入力します。
4. **\[Available modules (使用可能なモジュール)\]**​ で、このコネクタの名前をクリックします。
5. **\[Add (追加)\]**​ をクリックします。
6. **\[Finish (完了)\]**​ をクリックします。

## [](#studio-プロジェクトを設定する)Studio プロジェクトを設定する

1. コネクタの操作を Studio キャンバスにドラッグします。
2. コネクタのグローバル要素を設定します。
    
    ![コネクタの設定](/mulesoft/current/ja-jp/ibm-ctg-connector/2.3/_images/ibm-ctg-config-studio-1.png)
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 30%;">
<col style="width: 70%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>必須のライブラリ</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="ulist">
<ul>
<li>
<p>ctgserver.jar (CTG サーバーライブラリ)</p>
</li>
<li>
<p>cicsjee.jar (CICS JEE)</p>
</li>
<li>
<p>ccf2.jar (CICS 共通コネクタフレームワーク)</p>
</li>
<li>
<p>ctgclient.jar (CTG クライアントライブラリ)</p>
</li>
<li>
<p>geronimo-j2ee-connector_1.6_spec.jar</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>注意: コネクタと CTG システムとの互換性を確保するため、IBM の Web サイトから SDK の ZIP ファイルをダウンロードするのではなく、CTG サーバーのインストールにバンドルされている JAR ファイルを使用してください。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Host (ホスト)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>CICS TG のホスト名を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Port (ポート)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>CICS TG が動作しているポートを入力します。デフォルト値は 2006 です。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Server name (サーバー名)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>CICS TG 設定ファイルに定義されている対象 CICS サーバー名を入力します。省略可能。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Username (ユーザー名)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>CICS ユーザー ID を入力します。CICS リージョンでセキュリティが有効化されていない場合は省略可能です。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Password (パスワード)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>CICS ユーザー ID のパスワードを入力します。CICS リージョンでセキュリティが有効化されていない場合は省略可能です。</p>
</div></div></td>
</tr>
</tbody>
</table>
3. 連動関係を追加するには、​**\[Add dependency (連動関係を追加)\]**​ を選択して、項目に情報を入力します。
    
    ![連動関係コネクタ](/mulesoft/current/ja-jp/ibm-ctg-connector/2.3/_images/ibm-ctg-config-studio-2.png)
4. **\[Additional Settings (追加の設定)\]**​ タブに移動して設定を完了します。
    
    ![コネクタの設定](/mulesoft/current/ja-jp/ibm-ctg-connector/2.3/_images/ibm-ctg-config-advanced-studio.png)
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 30%;">
<col style="width: 70%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Keystore location (キーストアの場所)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>SSL クライアントに必要な証明書が格納されたキーストアの場所を入力します。省略可能。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Keystore Password (キーストアパスワード)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>SSL クライアント用のキーストアにアクセスするためのパスワードを入力します。省略可能。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Connection Timeout (接続タイムアウト)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>クライアントから CTG へのソケットタイムアウトを入力します。デフォルト値は 0 (タイムアウトなし) です。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Response Timeout (応答タイムアウト)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>クライアントから CTG への応答タイムアウトを入力します。デフォルト値は 30000 ミリ秒 (30 秒) です。  <strong>†</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>CTG Trace (CTG トレース)</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>True</code>​ に設定すると、CTG トレースのすべてのデバッグレベルが有効になります。デフォルト値は ​<code>False</code>​ です。</p>
</div></div></td>
</tr>
</tbody>
</table>
    
    **†**​ ​**\[Response Timeout (応答タイムアウト)\]**​ は、サーバー側で ​`ecitimeout`​ パラメーターが設定されている場合、そのパラメーターで上書きされます。 [IBM の ECI Timeout (ECI タイムアウト)](https://www.ibm.com/support/knowledgecenter/en/SSZHFX_9.0.0/com.ibm.cics.tg.doc/ctgunx/ipictimeout.html)​ を参照してください。
5. 操作を選択します。
    
    ![操作コネクタ](/mulesoft/current/ja-jp/ibm-ctg-connector/2.3/_images/ibm-ctg-operations.png)
    
    IBM CTG Connector は次の 2 つのアウトバウンド操作をサポートします。
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 30%;">
<col style="width: 70%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Name (名前)</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Execute</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>データをチャネルおよびコンテナとしてカプセル化して CICS プログラムを呼び出します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Execute using COMMAREA</strong></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>データを COMMAREA としてカプセル化して CICS プログラムを呼び出します。要求の最大サイズは 32 KB です。</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#pom-ファイル情報)POM ファイル情報

```xml
<dependency>
  <groupId>com.mulesoft.connectors</groupId>
  <artifactId>mule-ibm-ctg-connector</artifactId>
  <version>x.x.x</version>
  <classifier>mule-plugin</classifier>
</dependency>
```

`x.x.x`​ を使用しているコネクタに対応するバージョンに置き換えます。

最新の ​`pom.xml`​ ファイル情報を取得するには、​ [Anypoint Exchange](https://www.mulesoft.com/exchange/)​ でコネクタにアクセスし、​**\[Dependency Snippets (連動関係スニペット)\]**​ をクリックします。

## [](#要求および応答のロギングの有効化)要求および応答のロギングの有効化

コネクタと IBM CTG のインタラクションのロギングを有効にするには、Mule アプリケーションの log4j2.xml ファイルで次のようにロガーを設定する必要があります。log4j2.xml ファイルの ​`Loggers`​ ブロックに AsyncLogger ステートメントを挿入します。

```xml
<AsyncLogger
	name="org.mule.modules.ibmctg.internal.service.CTGServiceImpl"
	level="DEBUG"/>
```

## [](#一般的なユースケース)一般的なユースケース

- COMMAREA プログラムを呼び出す
- チャネルプログラムを呼び出す
- トランザクションスコープ内で COMMAREA またはチャネルを呼び出す
- カスタムメタデータを追加する

<table><tbody><tr><td class="icon"><i class="fa icon-note" title="Note"></i></td><td class="content">最初の 3 つのユースケースを正常に実施するためには、対象 CICS システムに指定されたプログラムがある必要があります。</td></tr></tbody></table>

## [](#関連情報)関連情報

- IBM の [「Developing Java applications for CICS」](https://www.ibm.com/support/knowledgecenter/SSGMCP_5.3.0/com.ibm.cics.ts.java.doc/topics/dfhpjpart2.html)​ (CICS 用の Java アプリケーションの開発)
- [Introduction to the J2EE Connector Architecture](https://www.ibm.com/developerworks/java/tutorials/j-jca/j-jca.html)​ (J2EE Connector アーキテクチャ入門) にある JCA のハイレベルチュートリアル
- [Redbooks for the IBM Mainframe (IBM メインフレームレッドブック)](http://www.redbooks.ibm.com/Redbooks.nsf/domains/zsoftware?Open)
- [Create Metadata](https://docs.mulesoft.com/studio/create-metadata-class-task)
- [IBM の ECI Timeout (ECI タイムアウト)](https://www.ibm.com/support/knowledgecenter/en/SSZHFX_9.0.0/com.ibm.cics.tg.doc/ctgunx/ipictimeout.html)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)