I am using following XML snippet to declare custom predicate on my route.
However, Camel 2.4 is throwing exception. It looks like Camel is not able to
find Bean from exception message. Is it a correct syntax for custom
predicate declaration?

<bean id="filterPredicate" class="test.MockPredicate"/> <camelContext
id="camel" xmlns="http://camel.apache.org/schema/spring";> <route> <from
uri="activemq:queueA"/> <filter> <method ref="filterPredicate"/> <to
uri="activemq:queueB"/> <filter> </route> </camelContext>

If it is incorrect, what is correct syntax?

Can I make route transactional with following syntax?

<bean id="filterPredicate" class="test.MockPredicate"/> <camelContext
id="camel" xmlns="http://camel.apache.org/schema/spring";> <route> <from
uri="activemq:queueA"/> <transacted/><filter> <method
ref="filterPredicate"/> <to uri="activemq:queueB"/> <filter> </route>
</camelContext>

Thanks,

Ray

-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Custom-Predicates-definition-in-Spring-XML-tp3256012p3256012.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to