Hi 

*Any one advice me on this code snippet.The exception block <onexception> is
not triggered when the expection is thrown.The address in <jaxws:client
id=""> is throwing target invocation error.But the exception handler is not
picking the exceptions.Advice me on the correct usage of exception handler
in this code snippet.*

<camelContext xmlns="http://camel.apache.org/schema/spring";>
    <redeliveryPolicyProfile redeliveryDelay="25" maximumRedeliveries="3"
id="sapRedelivery"/>
    
      <onException redeliveryPolicyRef="sapRedelivery">
     
            <description>Re delivery Policy Ref</description>
            <exception>java.lang.Exception</exception>
            <redeliveryPolicy logRetryAttempted="true"
retryAttemptedLogLevel="WARN"/>
            <to uri="PersistFaildMsgsToEmaildb"/>
        </onException>
    <route>
        <from uri="bean name"/>

        <log logName="MCInput" loggingLevel="INFO" message="DATA for MC
${body}"/>
        <to uri="pi-mc"/>
      
    </route>
</camelContext>

<*jaxws:client id=""*
        address="http://otpidd01:7000/XISOAPAdapter/MessageServlet?";
        serviceClass="classname"
        username="om_sys_user"
        password="om_sys_user"
                
   /> 
  <bean id="pi-mc"
      class="com.classname"
     init-method="init" destroy-method="destroy">
    
     <property name="PIService" ref="PIServiceProxy"/>
       </bean>

Thanks 



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

Reply via email to