Hi William, Thanks for pointing to additional examples with 'MessageFilter' configuration. However my Q was not about using any particular expression language with filter pattern, or using <filter> to configure 'MessageFilter', there are seems plenty od examples in Camel docs.
Q was: if user can use 'Filter' processor(<filter>) to configure ContentFilter pattern in XML? And if it is possible to use 'Filter' processor configure both: MessageFilter or ContentFilter patterns in XML, what will be a criteria to distinguish one configuration from another? It seems that XML configuration is kind of ambiguous in such case? William Tam wrote: > > Hi Irene, > > This wiki page http://activemq.apache.org/camel/xpath.html contains > some examples to show how to use XPath to filter messages based on > content. There are other supported languages as well > http://activemq.apache.org/camel/languages.html. > > Cheers, > William > > > On Fri, Jul 11, 2008 at 10:37 AM, ilevina <[EMAIL PROTECTED]> wrote: >> >> According online documentation MessageFilter route can be configured >> using >> Camel Spring XML Extensions as follows: >> >> <camelContext id="camel" >> xmlns="http://activemq.apache.org/camel/schema/spring"> >> <route> >> <from uri="seda:a"/> >> <filter> >> <xpath>$foo = 'bar'</xpath> >> <to uri="seda:b"/> >> </filter> >> </route> >> </camelContext> >> >> Can <filter> be used to configure ContentFilter route (using Spring XML >> Extensions) ? >> Could you please provide example for ContentFilter? >> What criteria is used to distinguish ContentFilter from MessageFilter >> when >> they are configured with <filter> type? >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-use-Camel-Spring-XML-Extension-to-configure-ContentFilter-and-MessageFilter-EIP%27s-tp18405369s22882p18405369.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/How-to-use-Camel-Spring-XML-Extension-to-configure-ContentFilter-and-MessageFilter-EIP%27s-tp18405369s22882p18444505.html Sent from the Camel - Users mailing list archive at Nabble.com.
