I face an issue where if the connection to the serviceEndpoint failed. Once the connection is back and the retry is successful, It prompts an error cause it seems like the respTransform is not called.
Could it be my retry policy/handling is not correct? Please advice. Here is my configuration file: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ctx="http://www.springframework.org/schema/context" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:camel-cxf="http://camel.apache.org/schema/cxf" xmlns:http="http://cxf.apache.org/transports/http/configuration" xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration" xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://camel.apache.org/schema/osgi http://camel.apache.org/schema/osgi/camel-osgi.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http-jetty.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" /> <camelContext xmlns="http://camel.apache.org/schema/spring"> <package>com.test</package> </camelContext> <httpj:engine-factory bus="cxf"> <httpj:engine port="9843"> <httpj:tlsServerParameters> <sec:keyManagers keyPassword="cbig1234"> <sec:keyStore type="JKS" password="cbig123" resource="cbigserver.jks" /> </sec:keyManagers> <sec:trustManagers> <sec:keyStore type="JKS" password="cbig123" resource="cbigserver.jks" /> </sec:trustManagers> <sec:cipherSuitesFilter> <sec:include>.*_WITH_3DES_.*</sec:include> <sec:include>.*_WITH_DES_.*</sec:include> <sec:exclude>.*_WITH_NULL_.*</sec:exclude> <sec:exclude>.*_DH_anon_.*</sec:exclude> </sec:cipherSuitesFilter> <sec:clientAuthentication want="true" required="false" /> </httpj:tlsServerParameters> </httpj:engine> </httpj:engine-factory> <camel-cxf:cxfEndpoint id="serviceEndpoint" xmlns:cust="http://www.dbs.com/wsdl/CustomerSvc" address="https://192.168.1.172:37025/Service1/CustomerSvc" serviceClass="com.dbs.wsdl.customersvc.CustomerSvcPortType" serviceName="cust:CustomerSvc_Service" endpointName="cust:CustomerSvc_Port_GD" wsdlURL="/home/williamc/camel/wsdl/custNameSrh/CustNameSrhOp_30_v1.2.wsdl"> </camel-cxf:cxfEndpoint> <camel-cxf:cxfEndpoint id="cbigEndpoint" address="https://localhost:9843/services/CBIG" serviceClass="com.test.CbigService"> </camel-cxf:cxfEndpoint> <http:conduit name="*.http-conduit"> <http:tlsClientParameters disableCNCheck="true"> <sec:trustManagers> <sec:keyStore type="JKS" password="sgleapclient123" file="/home/williamc/camel/cxftest/src/main/resources/sgleapclient.jks" /> </sec:trustManagers> <sec:cipherSuitesFilter> <sec:include>.*_EXPORT_.*</sec:include> <sec:include>.*_EXPORT1024_.*</sec:include> <sec:include>.*_WITH_DES_.*</sec:include> <sec:include>.*_WITH_NULL_.*</sec:include> <sec:exclude>.*_DH_anon_.*</sec:exclude> </sec:cipherSuitesFilter> </http:tlsClientParameters> </http:conduit> <camel:camelContext trace="true"> <camel:onException useOriginalMessage="true"> <camel:exception>org.apache.cxf.interceptor.Fault</camel:exception> <camel:exception>java.lang.Exception</camel:exception> <camel:redeliveryPolicy maximumRedeliveries="3" redeliveryDelay="10000" /> </camel:onException> <camel:route> <camel:from uri="cxf:bean:cbigEndpoint"> <camel:description></camel:description> </camel:from> <camel:bean ref="com.test.RequestForger" method="process" /> <camel:pipeline> <camel:to uri="cxf:bean:serviceEndpoint"> </camel:to> *<camel:bean ref="respTransform" />* </camel:pipeline> </camel:route> </camel:camelContext> <bean id="com.test.RequestForger" class="com.test.RequestForger" /> <bean id="respTransform" class="com.test.RespTransform" /> </beans> -- View this message in context: http://camel.465427.n5.nabble.com/The-Next-Bean-Not-Called-When-Retry-tp4769784p4769784.html Sent from the Camel - Users mailing list archive at Nabble.com.
