---
schema_version: "1"
id: 8e86c269592ef393dc1f9a642dbde120baef82bc4ccc26b15e76e7af319f969d
title: Mule 4 への移行の準備
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mule-runtime/4.7/migration-prep.md
canonical_url: https://docs.mulesoft.com/jp/mule-runtime/4.7/migration-prep
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e48c92eba7fec91540e1fc359e8b8188fdf1fc7406005ab4e58a32ef2f1ee7aa
description: MuleSoft Documentation Site
release: "4.7"
latest: false
---
# Mule 4 への移行の準備

Mule 4 では多くの変更が導入されているため、Mule 3 からの移行を試みる前にその点を考慮に入れて計画を練ってください。

## [](#when_to_start)Mule 4 の使用を開始するタイミング

以下の場合、​**新しい**​プロジェクトはすべて Mule 4 で開発することをお勧めします。

- 自分を含むチームが、ドキュメントや正式なトレーニングを通じて Mule 4 に対応したスキルを備えている場合。
- [適切なデプロイメント環境](#prepare_dev_environ)​がある場合。

Mule 3 にデプロイされたプロジェクトの場合、Mule Migration Assistant (MMA) を使用して、Mule 4 でのアプリケーションの再作成を回避します。

次のいずれかの条件を満たす場合、アプリケーションを移行します。

- 使用している 3.x バージョンが期限切れになった場合。
- 既存のアプリケーションに対して重大な更新を行う場合。
- 重要な Mule 4 機能を利用したい場合。
- 組織ですべてのアプリケーションを 1 つのバージョンで実行する必要があるため、すべてのアプリケーションを Mule 4 にアップグレードすることを決定した場合 (一部のオンプレミスのシナリオ)。

## [](#prepare_dev_environ)ローカル開発環境のセットアップ

まず、Anypoint Studio 7 をダウンロードおよびインストールします。Anypoint Studio に付属の Mule バージョンがローカルデプロイメントに使用する Mule バージョンと一致しない場合は、必要な 4.x バージョンの Mule Runtime Engine をダウンロードします。

## [](#prepare_to_deploy)デプロイの準備

次に、デプロイメント環境の準備を整える必要があります。現在の環境に応じて、必要なステップが異なる場合があります。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</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">CloudHub</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">CloudHub は Mule 4 に対応しています。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">ハイブリッドデプロイメント</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">自分のサーバーに Mule 4 をインストールします。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Anypoint Runtime Fabric</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Runtime Fabric は Mule 4 をサポートしています。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Anypoint Platform Private Cloud Edition (PCE)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">PCE は Mule 4 をサポートしています。</p></td>
</tr>
</tbody>
</table>

## [](#write_code)コードの作成

完全な手動移行を実行している場合、Mule 4 アプリケーションの構築およびデプロイを開始できます。 移行プロセスの概要を把握し、Mule 4 で導入された変更を理解するには、​[「Mule 4 の概要」](https://docs.mulesoft.com/jp/mule-runtime/4.7/intro-overview)​をご確認ください。

Mule Migration Assistant (MMA) を使用した支援による移行の指針について、 [MMA ドキュメント (GitHub)](https://github.com/mulesoft/mule-migration-assistant/blob/master/docs/migration-intro.adoc#migration_process)​ を確認することが重要です。

重要

**Mule Migration Assistant (MMA) には、 [Community](https://www.mulesoft.com/legal/versioning-back-support-policy#community)​ Connector について記述されている契約条件が適用されます。また、Mule Migration Assistant は、 [3-Clause BSD License](https://github.com/mulesoft/mule-migration-assistant/blob/master/LICENSE.txt)​ の契約条件に従って配布されるものとします。**