2011-11-07 21 views
1

の連鎖:私はそうのような連鎖ルーターを使用しようとしていますルータおよびスキーム

<flow name="Something"> 
    <quartz:inbound-endpoint jobName="eventTimer" 
     repeatInterval="2000"> 
     <quartz:event-generator-job /> 
    </quartz:inbound-endpoint> 
    <chaining-router> 
     <jdbc:outbound-endpoint queryKey="selectMules" 
      exchange-pattern="request-response" /> 
     <collection-splitter /> 
     <vm:outbound-endpoint path="Something" 
      exchange-pattern="one-way" /> 
    </chaining-router> 
</flow> 

しかし、私は、スキームエラーgettnig保つ:今

A Fatal error has occurred while the server was running:      * 
* cvc-complex-type.2.4.a: Invalid content was found starting with element  * 
* 'chaining-router'. 

を、私がチェックしてrelveantましたscehmesがロードされています - 私のスキームは:

<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:spring="http://www.springframework.org/schema/beans" xmlns:http="http://www.mulesoft.org/schema/mule/http" 
    xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio" xmlns:vm="http://www.mulesoft.org/schema/mule/vm" 
    xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" 
    xmlns:script="http://www.mulesoft.org/schema/mule/scripting" 
    xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern" xmlns:jdbc="http://www.mulesoft.org/schema/mule/jdbc" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xsi:schemaLocation=" 
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
     http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd 
     http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/3.2/mule-quartz.xsd 
     http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/3.2/mule-scripting.xsd 
     http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd 
     http://www.mulesoft.org/schema/mule/stdio http://www.mulesoft.org/schema/mule/stdio/3.2/mule-stdio.xsd 
     http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/3.2/mule-cxf.xsd 
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd 
     http://www.mulesoft.org/schema/mule/pattern http://www.mulesoft.org/schema/mule/pattern/3.2/mule-pattern.xsd 
     http://www.mulesoft.org/schema/mule/jdbc http://www.mulesoft.org/schema/mule/jdbc/3.2/mule-jdbc.xsd 
     http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.2/mule-vm.xsd"> 

私は何かが欠けていますか?

ありがとうございます!

答えて

1

チェインリングルータは、古いサービス要素で動作するように設計されたレガシールータです。フローでは、routing message processors insteadを使用します。

メッセージプロセッサがフロー内で自動的にチェーンされているため、(エンドポイントが要求応答の場合は、それ以外の場合は非同期で行われるため)物事を連鎖させるためにルーターは必要ありません。

+1

私はあなたのすべての返事に感謝しているとは思わない。あなたはミュールについて最も知識のある個性的な人のようです。もし私がここであなたの本の最新のコピーを見つけたら、それをハートビートで買うだろう。 – Menyh

関連する問題