# ProducerTemplateを設定

利用対象...

* Cloud API Services Platform
* Cloud Data Fabric
* Data Fabric
* Data Services Platform
* ESB
* MDM Platform
* Real-Time Big Data Platform

## このタスクについて

ProducerTemplateを作成し、Javaコードを使用してメッセージ交換をエンドポイントに送信できます。この操作は次の手順で行います。

## 手順

1. テストケースのデザインワークスペースで空白のエリアを右クリックし、コンテキストメニューから[Config ProducerTemplate] (ProducerTemplateを設定)を選択します。

   ![コンテキストメニューでの\[Config ProducerTemplate\] (ProducerTemplateを設定)オプション。](https://help.qlik.com/talend/ja-JP/studio-user-guide/Resources/images/studio_di_esb-route-test_case-config_producertemplate1.png)
2. [Config ProducerTemplate] (ProducerTemplateを設定)ウィザードが開きます。[Code] (コード)エリアにJavaコードを入力し、メッセージ交換を実装します。

   ![\[Config ProducerTemplate\] (ProducerTemplateを設定)ウィザード。](https://help.qlik.com/talend/ja-JP/studio-user-guide/Resources/images/studio_di_esb-route-test_case-config_producertemplate2.png)

   [Sample Code...] (サンプルコード...)ボタンをクリックすると、例が表示されます。ProducerTemplateの詳細は、ウィザードで[ProducerTemplate]リンクをクリックし、ProducerTemplateのApacheオンラインドキュメンテーションをご覧ください。