Hello 

Its my long pending doubt on using AOP stuffs in Camel while writing test
cases. 

1. weavebyid - works only with processors like Choice, doTry, Multicast. It
doesn't work with endpoints. Especially with 'To' endpoints. ( For 'From'
endpoint we anyway have ReplaceFromWith )

2. weavebyToString - It works with 'To' endpoints. If we have a endpoint
called <to ref="cloud-endpoint" />
 then why it expects a wild card like this ?
weaveByToString(".*cloud-endpoint*.").remove();

3. If my 'To' endpoint is inside a processor like Choice . Then
weaveByToString remove the choice also . Even if choice and the To endpoint
have different id's. 

Its manageable to write test cases with existing features, but Camel will
become more interesting if these issues are sorted out :)

A happy camel rider !
Guru





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-AdviceWith-issues-tp5752786.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to