Write routing condition in xml config file
Hi all, Is someone can say me how to test a header exchange value in a xml config file. For example, if the header TEST exists in my IN message and its value is 10, I want to do the following: route from uri=… choice when In.header.TEST==10 to uri=…/ /when … /choice /route Any help are welcome, Best regards Mta38 -- View this message in context: http://www.nabble.com/Write-routing-condition-in-xml-config-file-tp21828008s22882p21828008.html Sent from the Camel - Users mailing list archive at Nabble.com.
Interceptor / stop / xml configuration file
Hi all, I want to use interceptor in my route. But I think I may do something wrong Here is my code route from uri=direct:a / intercept interceptor id=intercept1 ref=validateInterceptor/ to uri=mock:test/ stop/ /intercept to uri=direct:b/ /route … other routes … bean id=validateInterceptor class=com.example.interceptors.CheckMessageValidation/ My class CheckMessageValidation extends DelegateProcessor. The process method only adds a trace in a log file. When I test this route, I state that I have the expected trace in my log file, but all other routes are executed. The System does not stop after sending exchange to Mock endpoint. Can anybody can explain me what is wrong in my route. Best regards, Mta38 -- View this message in context: http://www.nabble.com/Interceptor---stop---xml-configuration-file-tp22054882s22882p22054882.html Sent from the Camel - Users mailing list archive at Nabble.com.
Interceptor
Hi all, Is somebody already using its own interceptor in a xml spring configuration file? In fact, I want to know if in the following definition of intercept, the stop really stops route execution. Cause for me; all other routes are executed. intercept interceptor id=intercept1 ref=MyInterceptor/ to uri=mock:test/ stop/ /intercept Best regards, Mta38 -- View this message in context: http://www.nabble.com/Interceptor-tp22178768p22178768.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
Camel meven goal configuration problem
Hi all, I am trying to run camel maven goal (camel:dot). I stated that if in resource project folder, it does not exist META-INF/spring:*.xml structure, but something like resource/ com/ myprganisation/ routes/ camel-context.xml (camel routes are in this file) Folder1/ SpringFile1.xml (beans used by camel routes) The command mvn camel:dot generate an index.html file with message No EIP diagrams available even if in my pom.xml, i configure applicationContextUri property of camel-maven-plugin. Is someone can explain me what is wrong in my use of camel maven goal ?:confused: Thanks in advance, Best regards. Mta38 -- View this message in context: http://www.nabble.com/Camel-meven-goal-configuration-problem-tp22369252p22369252.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
camel-maven-plugin configuration for reporting
HI all, I am trying to use camel-maven-plugin in the reporting section of my project pom. !-- camel routes report -- plugin groupIdorg.apache.camel/groupId artifactIdcamel-maven-plugin/artifactId version1.6.0/version configuration outputDirectoryc:\MyOutputFolder\cameldoc/outputDirectory useDottrue/useDot runCameltrue/runCamel fileApplicationContextUriclasspath*:META-INF/spring/routerApplicationContext-test.xml/fileApplicationContextUri mainClasscom.francetelecom.cristal.routing.Run.MainTest/mainClass executable${graphviz-exe}/executable graphvizOutputTypejpg/graphvizOutputType goals goalcamel:embedded/goal /goals /configuration /plugin Here is the error message I have. ERROR: Cannot override read-only parameter: outputDirectory in goal: camel:converters-report I do not want the converters-report but I cannot find a way to configure that even in source code. In addition, I want generated documentation in a specific folder. If I did not specify outputDirectory, all html files are generated in target/site Any help will be appreciating. Best regards, Thanks in advance Mta38 -- View this message in context: http://www.nabble.com/camel-maven-plugin-configuration-for-reporting-tp23294260p23294260.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
Exception, ErrorHandler and redelivery
Hi all, I play with Exception, ErrorHandler and redelivery (Camel 2.0-M1) and there are some things that I can't understand :confused:. snippet code bean id=globalDeadLetterChannel class=org.apache.camel.builder.DeadLetterChannelBuilder property name=defaultDeadLetterEndpointUri value=direct:response/ property name=onRedelivery ref=routeRedelivery/ property name=redeliveryPolicy bean id=redeliveryPolicyConfig class=org.apache.camel.processor.RedeliveryPolicy property name=maximumRedeliveries value=1/ /bean /property /bean camelContext id=camelContext errorHandlerRef=globalDeadLetterChannel xmlns=http://camel.apache.org/schema/spring; onException exceptionjava.lang.RuntimeException/exception handled constanttrue/constant /handled to uri=direct:response / /onException … other routes … /camelContext routeRedelivery bean is a processor which make some trace in a log file. When I raise a runtimeException, the process method of routeRedelivery bean is not called. I can't understand why, since onRedelivery property is defined for my global dead letter channel. If I modify onException element like following: onException onRedeliveryRef=routeRedelivery exceptionjava.lang.RuntimeException/exception redeliveryPolicy maximumRedeliveries=1/ handled constanttrue/constant /handled to uri=direct:response / /onException And I raised a RuntimeException, I have some trace in my log file that proves that process method of routeRedelivery bean is called. Is someone can explain me why onRedelivery processor is not called when it's defined in global scope will be appreciated. Best regards, Mta38 -- View this message in context: http://www.nabble.com/Exception%2C-ErrorHandler-and-redelivery-tp23743717p23743717.html Sent from the Camel - Users mailing list archive at Nabble.com.