2011-11-07 3 views
1

je tente d'utiliser un routeur Enchaînement comme ceci:routeur Enchaînement et système

<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> 

Cependant, je continue à gettnig une erreur de système:

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'. 

Maintenant, je l'ai vérifié et relveant scehmes est chargé - mes schémas sont:

<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"> 

Ai-je raté quelque chose ??

Merci!

Répondre

1

Le routeur de chaînage est un routeur hérité conçu pour fonctionner avec l'ancien élément de service. Dans les flux, utilisez routing message processors instead. Dans votre cas, vous n'avez pas besoin d'un routeur pour enchaîner les choses, car les processeurs de messages sont automatiquement chaînés dans un flux (les points finaux fournis sont des requêtes-réponses, sinon certaines expéditions arrivent de manière asynchrone).

+1

Je ne pense pas que je vous ai remercié pour toutes vos réponses. Vous semblez être le plus indivisible sur Mule. Si je pouvais trouver une copie mise à jour de votre livre ici, je l'achèterais en un clin d'œil. – Menyh