Access Keys:
Skip to content (Access Key - 0)
ソース

ESB Mule Springプロキシ

ESB Springプロキシは、MuleClientの代わりに使えるSpring対応のクライアントです。Springを使ってESB Muleクライアントを設定することを可能にします。モジュールはSMuTスタック(Spring, Mule, Tomcat)の一部として使うこともできる。本プロジェクトの主なゴールは、ESB Muleの外にあるサービスと、ESB Muleサービス(UMO)の連携をSpringを使って簡単にできるようにすることである。

開発の進め方

  • スケルトンを実装する
  • vmトランスポートを使って同期呼び出しを実装する
  • 他のトランスポート及びトランスフォーマを作成する
  • 非同期呼び出しを実装する

使い方の例

ProxyFactoryBeanのSpring設定:

<bean id="proxyToMuleService" class="org.mule.springproxies.SynchClientFactoryBean">
  <!-- Service interface implemented by Mule Service -->
  <property name="serviceInterface"; value="no.bouvet.samples.AService" />

  <!-- Endpoint configured in Mule configuration -->
  <property name="endpointAdress" value="vm://testIn" />
</bean>

 Spring 2.0 schema configuration of the ProxyFactoryBean:

<clprx:synch
  id="proxyToMuleService"
  serviceInterface="no.bouvet.samples.AService"
  endpointAdress="xfire:http://localhost:8081/services/AServiceUMO"
  resultTransformer="no.bouvet.samples.AServiceTransformer"/>

Client bean getting the proxy injected:

<bean id="theUsingBean" class="no.bouvet.samples.SomeBeanLivingInSpringContainer">
  <property name="aService" ref="proxyToMuleService" />
</bean>

ソースコード

現時点では概念を実証(プルーフ・オブ・コンセプト)のみを提供しています。概念を実証には、SpringプロキシをどのようにしてESB Muleクライアントとして使うのかのテスト・ケースも含めています。

ダウンロード 

Adaptavist Theme Builder (3.3.2-conf2.10) Powered by Atlassian Confluence 2.10, the Enterprise Wiki.
Free theme builder license