2008/7/14 ilevina <[EMAIL PROTECTED]>: > > 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?
Just to check I understand what you're asking; <filter> in Camel refers to the Message Filter pattern.... http://activemq.apache.org/camel/message-filter.html ContentFilter however is really a transformation... http://activemq.apache.org/camel/content-filter.html so you can create a content filter by just invoking a processor or a bean... <from uri="activemq:Input"/> <bean ref="myBeanName" method="doTransform"/> <to uri="activemq:Output"/> FWIW I just updated the wiki to be a bit clearer on this http://cwiki.apache.org/CAMEL/content-filter.html -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
