On 1/14/11 8:07 AM, vcheruvu wrote:

For 1, I checked in the Camel book to see how i can define parrelelProcessing
for multicast in Spring DSL.  I do not see an example to specify
parallelProcessing in Spring DSL. Is it only available in Java DSL?

No, you can set it like this.

 <camelContext xmlns="http://camel.apache.org/schema/spring";>
    <route>
      <from uri="direct:a"/>
      <multicast parallelProcessing="true">
          <to uri="direct:x"/>
          <to uri="direct:y"/>
          <to uri="direct:z"/>
      </multicast>
    </route>
    <route>
      <from uri="direct:x"/>
      <process ref="attachStringProcessor"/>
      <to uri="mock:x"/>
    </route>
    <route>
      <from uri="direct:y"/>
      <process ref="attachStringProcessor"/>
      <to uri="mock:y"/>
    </route>
    <route>
      <from uri="direct:z"/>
      <process ref="attachStringProcessor"/>
      <to uri="mock:z"/>
    </route>
  </camelContext>

--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to