---
schema_version: "1"
id: fb5aee58ab1c3c0a97e559b8eb2b955af27ed3280d9b094041180f3a9bf135d9
title: Anypoint MQ の使用開始
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mq/mq-get-started.md
canonical_url: https://docs.mulesoft.com/jp/mq/mq-get-started
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 279e8ac199f0498cf281d763f725ee7f2a18c682539ec120adbc9cb9206672b0
description: MuleSoft Documentation Site
latest: true
---
# Anypoint MQ の使用開始

Anypoint MQ を設定して使用するには、以下の概要手順に従ってください。

1. アカウントチームに連絡して Enterprise サブスクリプションを取得し、Anypoint MQ を有効化します。
2. [環境とアクセス権限を設定します](https://docs.mulesoft.com/jp/mq/mq-access-management)​。
3. MQ 用 Anypoint Connector (​[Anypoint MQ Connector](https://docs.mulesoft.com/jp/anypoint-mq-connector/latest/)​) を設定するための ID とシークレットを取得するように​[接続アプリケーションを設定](https://docs.mulesoft.com/jp/mq/mq-connected-apps)​します。
4. [キュー](https://docs.mulesoft.com/jp/mq/mq-queues)​、​[メッセージエクスチェンジ](https://docs.mulesoft.com/jp/mq/mq-exchanges)​、または ​[FIFO キュー](https://docs.mulesoft.com/jp/mq/mq-queues#fifoqueues)​を設定します。
5. キューまたはメッセージエクスチェンジに​[メッセージを送信](https://docs.mulesoft.com/jp/mq/mq-queues#send-message-to-queue)​します。
6. キューから​[メッセージを取得](https://docs.mulesoft.com/jp/mq/mq-queues#get-a-message-from-a-queue)​します。
7. Anypoint Studio で Mule アプリケーションの Anypoint MQ Connector を設定します。
    
    1. Anypoint Exchange を使用して Anypoint MQ Connector をインストールします。
    2. HTTP 用 Anypoint Connector (HTTP Connector)、Anypoint MQ Connector、Set Payload、Logger など、必要なビルディングブロックを使用して新しい Mule プロジェクトを作成します。
    3. Anypoint MQ Connector を設定して、接続アプリケーションの ID とシークレットを指定します。
    4. Anypoint MQ Connector の操作を設定して、メッセージのパブリッシュまたはコンシューム、メッセージの受け入れ (ACK)、メッセージの拒否 (NACK) を行います。
    5. Mule アプリケーションをデプロイします。
8. キューをテストします。
    
    1. `Curl`​ や Postman などの REST クライアントを使用して、メッセージを送受信します。
        
        Anypoint MQ では、指定されたキューまたはメッセージエクスチェンジに文字列をメッセージとして送信します。
    2. メッセージをブラウザーまたは Studio コンソールで表示します。

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

- [Anypoint MQ チュートリアル](https://docs.mulesoft.com/jp/mq/mq-tutorial)
- [Anypoint MQ Connector](https://docs.mulesoft.com/jp/mq/mq-connectors)
- [Anypoint MQ FAQ](https://docs.mulesoft.com/jp/mq/mq-faq)
- [Anypoint MQ リリースノート](https://docs.mulesoft.com/jp/mq/mq-release-notes)
- [Anypoint MQ 監査ログ](https://docs.mulesoft.com/jp/access-management/audit-logging#to-query-audit-logging-for-anypoint-mq)