Flex Gateway新着情報
Governance新着情報
Monitoring API ManagerXML で Mule アプリケーションを手動でコーディングすることもできますが、Anypoint Studio を使用した方が効率的です。
Anypoint Studio の XML エディターまたはテキストエディターから Mule Runtime Engine (Mule) アプリケーションを手動でコーディングする場合、参照ステートメントを XML Mule フローと Apache Maven pom.xml ファイルの両方に追加することで、アプリケーションからコネクタにアクセスできます。
Studio でコネクタを追加すると、Studio は自動的に XML コードにコネクタの名前空間およびスキーマの場所を入力し、pom.xml ファイルに連動関係を追加します。
次のコードを設定 XML のヘッダーの mule タグ内に貼り付けます。
http://www.mulesoft.org/schema/mule/redshift
http://www.mulesoft.org/schema/mule/redshift/current/mule-redshift.xsd
次の例は、XML 内に名前空間とスキーマステートメントが配置される方法を示しています。
<mule xmlns:redshift="http://www.mulesoft.org/schema/mule/redshift"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/redshift http://www.mulesoft.org/schema/mule/redshift/current/mule-redshift.xsd">
Apache Maven pom.xml ファイルは Anypoint Studio によって生成され、Mule アプリケーションの連動関係が含まれます。Mule アプリケーションを手動でコーディングする場合、次の XML スニペットを pom.xml ファイルに含めてこのコネクタにアクセスできるようにします。
<dependency>
<groupId>com.mulesoft.connectors</groupId>
<artifactId>mule4-amazon-redshift-connector</artifactId>
<version>x.x.x</version>
<classifier>mule-plugin</classifier>
</dependency>
x.x.x を使用しているコネクタに対応するバージョンに置き換えます。
最新の pom.xml ファイル情報を取得する手順は、次のとおりです。
Anypoint Exchange に移動します。
Exchange で、[Login (ログイン)] をクリックし、Anypoint Platform のユーザー名とパスワードを指定します。
Exchange で、「amazon redshift」を検索します。
コネクタを選択します。
画面の右上付近にある [Dependency Snippets (連動関係スニペット)] をクリックします。
名前空間および pom.xml ファイルを完了したら、例を試すことができます。