activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Can we define more then one target for eip-content based router
Date Tue, 02 Dec 2008 09:47:54 GMT
2008/12/2 manish_goyal <manishkumar_goyal@infosys.com>:
>
> Hi,
>
> I have a scenario where i need to route message to two different queue, if
> it satisfy some conditions.
>
> <eip:routing-rule>
>      <eip:predicate>
>          <eip:xpath-predicate xpath="//ns2:Code1/text() ='1001'"
> namespaceContext="#nsContext"/>
>      </eip:predicate>
>       <eip:target>
>                 <eip:exchange-target service="rout:MyProviderService1" />
>        </eip:target>
> </eip:routing-rule>
>
> I have specified two provider as MyProviderService1 and MyProviderService2
> for two different queues.
> When i am trying to add two <eip-target> for both provider, it's routing for
> the first target only not for both.
>
> Is there any way by which we can specify two different target for the one
> condition.
>
> Please give some pointers for the same.

This looks like a question about servicemix-eip; you should use the
ServiceMix user list for those questions.

If you used Camel (again on a different user list) you'd do something like

<route>
  <filter>
   <xpath>/whatever</xpath>
   <to uri="jbi:out:MyProviderService1/>
   <to uri="jbi:out:MyProviderService2/>
</route>

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message