|
This looks like a mistake in the schema/handler. it should be expression-recipient-list-router
Am on crack? I don't see a recipient list router that uses expressions... Only the StaticRecipientListRouter.
I came across this issue a while back when someone on the mailing list had issues and never really fully understood what should be done because there is no other recipient list router apart from the static implementation and the static implementation does not support expressions.
I think we'll just have to get rid of the "recipient-list-router" in the schema for now and then hopefully introduce a "expression-recipient-list-router" at a later date i.e in 2.2. Ross just attached his previous patch for 3277 so this should theoretically be a quick fix.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Here is the content:
I tried <recipient-list-router> which is valid as per the mule.xsd but i get the following exception:
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The element 'recipient-list-router' does not have an associated Bean Definition Parser. Is the module or transport associated with http://www.mulesource.org/schema/mule/core/2.0
present on the classpath?
Specific part of the config config:
<service name="connectionresponsehandler">
<inbound>
<inbound-endpoint ref="CONNECTION_RESPONSE_HANDLER" synchronous="false"/>
</inbound>
<component>
<spring-object bean="connectionResponseHandler"/>
</component>
<outbound>
<recipient-list-router evaluator="jxpath" expression="'udp://' + message.host + ':' + message.port"/>
</outbound>
</service>