---
schema_version: "1"
id: ee93f88f9d827c7fe386fbd355a76f19da190d17da186c1cde0379e863da461f
title: AS2 Connector のバージョン 6.x へのアップグレードおよび移行
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/as2-connector/6.2/as2-connector-upgrade-migrate.md
canonical_url: https://docs.mulesoft.com/jp/as2-connector/6.2/as2-connector-upgrade-migrate
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7cab0d18dfc99ae9311f8ddf244efab994ce1c93bd8dcd3b43aed98b3ce07ef4
description: MuleSoft Documentation Site
release: "6.2"
latest: false
---
# AS2 Connector のバージョン 6.x へのアップグレードおよび移行

新しい機能を利用するには、AS2 用 Anypoint Connector (AS2 Connector) をバージョン 5.x からバージョン 6.x にアップグレードします。

## [](#サポートされているアップグレードパス)サポートされているアップグレードパス

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</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"><div class="content"><div class="paragraph">
<p>5.x</p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>6.x</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#変更)変更

### [](#6-2)6.2

AS2 Connector 6.2 には、次の新規項目が含まれています。

- **Custom Message ID (カスタムメッセージ ID)**​: AS2 ​**Send**​ 操作のカスタムメッセージ ID を指定できます。
- **Propagate Content Transfer Encoding (コンテンツ転送エンコードを伝播)**​: パートナーに送信する AS2 メッセージでコンテンツ転送エンコードを伝播するかどうかを定義できます。

この両方の項目は ​**\[General (一般)\]**​ タブにあります。

### [](#6-1)6.1

AS2 Connector 6.1 には、次の変更も含まれています。

**\[Transfer Mode Configuration (転送モード設定)\]**​ 項目が ​`Send Config`​ クラスに追加され、​**Send**​ 操作を使用するときにデータのチャンク転送を有効または無効にできるようになりました。 \* 送信メッセージと受信メッセージのデジタル署名ありコピーおよびそれに対応する受信確認は、AS2 Connector の操作とソースで設定および有効化されている限り、非否認目的で保存できます。 \* 新しい Mule ソース ​`Non repudiation listener`​ は、ユーザー定義の永続化戦略を介して、AS2 Connector の操作とソースによって提供される非否認情報を永続化するようにユーザー設定されている必要があります。 \* 特定の属性オブジェクト項目の名前が変更され、非推奨の項目が削除されました。  
これらの変更の概要は、​[「アップグレード手順」](#upgrade-steps)​を参照してください。

## [](#要件)要件

移行する前に、次の要件を満たしていることを確認します。

- Mule 4.3.0 以降
- Java 8

## [](#upgrade-steps)アップグレード手順

次の手順に従って、AS2 バージョン 6.x へのアップグレードを実行します。

1. Exchange から AS2 Connector 6.x.x をダウンロードします。
2. アップグレードする Mule フローに適切なソースまたは操作を配置します。

### [](#as2-listener-および-as2-mdn-listener-の変更)AS2 Listener および AS2 MDN Listener の変更

AS2 Listener および AS2 MDN Listener を使用または設定する方法は変更されていません。

### [](#send-with-sync-mdn-および-send-with-async-mdn-操作の変更)Send with Sync MDN および Send with Async MDN 操作の変更

`Send with Sync MDN`​ および ​`Send with Async MDN`​ 操作には、次の変更があります。

- バージョン 6.1.0 で、​`com.mulesoft.connector.as2.api.AS2MdnAttributes`​ 型の属性オブジェクトが変更されました。  
    項目 ​`com.mulesoft.connector.as2.api.AS2SendAttributes.as2MdnAttributes`​ は ​`com.mulesoft.connector.as2.api.AS2MdnAttributes`​ 型です。
- MultiMap ​`dispositionContent`​ は、MDN の配置通知部分の情報をパラメーターに分割する、​`DispositionNotification`​ というオブジェクトに変換されます。  
    `DispositionNotification`​ は、​`DispositionNotificationReport`​ オブジェクト内にあります。

これらの属性を使用している Mule フローを適宜修正します。

### [](#as2-mdn-属性の変更)AS2 MDN 属性の変更

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">5.x 項目名</th>
<th class="tableblock halign-left valign-top">6.x 項目名</th>
<th class="tableblock halign-left valign-top">5.x 型</th>
<th class="tableblock halign-left valign-top">6.x 型</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">dispositionContent</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">dispositionContent</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">MultiMap&lt;String, String&gt;</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DispositionNotificationReport</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">mdnMic</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DispositionNotificationReport.DispositionNotification.receivedContentMic</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">String (文字列)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">String (文字列)</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">mdnMicAlg</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DispositionNotificationReport.DispositionNotification.receivedContentMicAlgorithm</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">HashAlgorithm</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">HashAlgorithm</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">mdnProcessed</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DispositionNotificationReport.DispositionNotification.dispositionType</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean (ブール)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">String (文字列)</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">originalAS2MessageId</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DispositionNotificationReport.DispositionNotification.originalMessageID</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">String (文字列)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">String (文字列)</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">reportText</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">項目を削除</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">String (文字列)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">項目を削除</p></td>
</tr>
</tbody>
</table>

### [](#アップグレード後の手順)アップグレード後の手順

アップグレードの手順を実行したら、次の手順に従ってアップグレードを完了します。

1. 起動時に例外がないことを確認してコネクタが機能していることを確認し、AS2 パートナーに対してテストします。
2. 使用している HTTP Listener に対応する新しい URL (ポート) 設定をパートナーに通知します。

## [](#トラブルシューティング)トラブルシューティング

パラメーターおよびメタデータのキャッシュに問題がある場合は、Studio を再起動してください。

## [](#アップグレードの復元)アップグレードの復元

以前のバージョンの as2MdnAttributes Connector に戻す必要がある場合、プロジェクトの ​`pom.xml`​ ファイルの ​`as2-connector`​ 連動関係バージョンを前のバージョンに変更します。

Anypoint Studio でプロジェクトの ​`pom.xml`​ ファイルを更新する必要があります。

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

- [Anypoint Connector の概要](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)