# コンポーネントを設定

## 手順

1. cErrorHandlerをダブルクリックして、[Component] (コンポーネント)タブで[Basic settings] (基本設定)ビューを開きます。

   ![](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/Resources/images/use_case_cerrorhandler_2.png)
2. [Logging Handler] (ログ取得ハンドラー)を選択して、スローされた例外を記録します。
3. cMessagingEndpointをダブルクリックして、[Component] (コンポーネント)タブで[Basic settings] (基本設定)ビューを開きます。

   ![](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/Resources/images/use_case_cerrorhandler_3.png)
4. Uriフィールドにjetty:http://localhost:8889/serviceと入力して、Jettyサーバーを指定します。
5. [Advanced settings] (詳細設定)をクリックして詳細を設定します。

   ![](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/Resources/images/use_case_cerrorhandler_4.png)
6. [Dependencies] (依存項目)テーブルで[+]ボタンをクリックして1行を追加し、[Camel component] (Camelコンポーネント)リストからjettyを選択します。
7. cProcessorをダブルクリックして、[Component] (コンポーネント)タブで[Basic settings] (基本設定)ビューを開きます。

   ![](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/Resources/images/use_case_cerrorhandler_5.png)
8. [Code] (コード)ボックスにthrow new Exception("server side error")と入力して、例外を返します。
9. [Ctrl] + [S]を押してジョブを保存します。