Hi, I want to use this:
http://camel.apache.org/message-router.html
http://camel.apache.org/simple.html
<route>
<from uri="activemq:queue:Notification.EndDonationSuccessEvent"
/>
<bean ref="mailNotificationTranslator"
method="prepareOrganizationNotification" />
<choice>
<when>
<simple>'[email protected]'!= ${body[sendTo]}</simple>
<to uri="activemq:queue:MAIL_NOTIFICATIONS" />
</when>
</choice>
</route>
In message body is HashMap with key 'sendTo'. I want to route all messages
except those to [email protected].
<when> is completly ignored (no matter !=,>==), alle messages are routed to
activemq:queue:MAIL_NOTIFICATIONS.
Where is problem ?
--
View this message in context:
http://camel.465427.n5.nabble.com/activemq-router-pattern-problem-with-when-tp4685750p4685750.html
Sent from the Camel - Users mailing list archive at Nabble.com.