Thanks a lot !
So, with yesterday's trunk build those two examples works perfectly :
Common part :
Code:
<message-bus />
<file:inbound-channel-adapter id="inputChannel" directory="file:C:/input">
<poller>
<interval-trigger interval="1000" />
</poller>
</file:inbound-channel-adapter>
<file:outbound-channel-adapter id="outputChannel" directory="C:/output" />
<file:outbound-channel-adapter id="anotherOutputChannel"
directory="C:/anotherOutput" />
RecipientListRouter :
Code:
<router ref="recipientListRouter" input-channel="inputChannel"/>
<beans:bean id="recipientListRouter"
class="org.springframework.integration.router.RecipientListRouter">
<beans:property name="channels">
<beans:list>
<beans:ref bean="outputChannel" />
<beans:ref bean="anotherOutputChannel" />
</beans:list>
</beans:property>
</beans:bean>
PayloadTypeRouter :
Code:
<router ref="payloadTypeRouter" input-channel="inputChannel"/>
<beans:bean id="payloadTypeRouter"
class="org.springframework.integration.router.PayloadTypeRouter">
<beans:property name="payloadTypeChannelMap">
<beans:map>
<beans:entry key="java.io.File" value-ref="outputChannel" />
<beans:entry key="java.lang.String" value-ref="anotherOutputChannel" />
</beans:map>
</beans:property>
</beans:bean>