Skip navigation

Plexusコンテナ・コンテキストは、plexusコンテナから取得したオブジェクトをUMOコンポーネントとして使えるようにしたり、ESB Muleのコネクタ, トランスフォーマ, エージェント等と関連付けることを可能にします。

PlexusをESB Muleと使うには、ESB Muleマネージャーのコンテナ・コンテキスト(container-context)を設定します。

<container-context 
    className="org.mule.extras.plexus.PlexusContainerContext">
    <properties>
        <property name="configFile" value="plexusContext.xml"/>
    </properties>
</container-context>

Plexus設定をコンテナ・コンテキスト(container-context)の中に記述することもできます。
例:

<container-context 
    className="org.mule.extras.plexus.PlexusContainerContext">
    <plexus>
        <components>
            <component>
                <role>orange</role>
                <implementation>org.mule.tck.testmodels.fruit.Orange</implementation>
            </component>
        </components>
    </plexus>
</container-context>

これで、plexusからUMOコンポーネントをロードすることができます。ロードするには、コンポーネントの implementation 属性をPlexusルール名(role name)に設定します。上の例のようにコンテナ・コンテキスト(container-context)を設定した場合は、以下のようにしてUMOComponentを取得できます。

<mule-descriptor name="orangeUMO" implementation="orange">
    ...
</mule-descriptor>

container-property タグを使って、Plexusコンテナのオブジェクトを任意のESB Muleオブジェクトに設定することができます。詳細に付いてはプロパティの設定を参照してください。

Adaptavist Theme Builder Powered by Atlassian Confluence