Hi All,

I have camel route in which I am using idempotentConsumer. I got
exceptionhandler added for the route.

 <route id="executeIdempotentLogicRoute">
            <from uri="direct:executeIdempotentLogicRoute" />
            <onException>
                <exception>java.lang.Exception</exception>
                <handled>
                    <constant>false</constant>
                </handled>
                <bean ref="onExceptionProcessor"
method="process(*,'basicRoute','basicRoute2')" />               
            </onException>
            <setHeader headerName="messageId">
                <simple>${body.getCode}</simple>
            </setHeader>
            <setHeader headerName="clientId">
                <simple>${body.getid}</simple>
            </setHeader>
            <when>
                <simple>${body.getClientId} != null</simple>
                <idempotentConsumer
messageIdRepositoryRef="messageIdRepository" skipDuplicate="false">
                    <header>messageId</header>
                    <filter>
                        <to uri="direct:returnResponse" />
                        <stop />
                    </filter>
                </idempotentConsumer>
            </when>
        </route>
My IdempotentRepository  is JDBCIdempotentRepository. When
org.springframework.dao.DataAccessException is thrown from my
IdempotentRepository, 
I can't get it in onException.  Process method of onExceptionProcessor
dosent gets called.

Any idea why this is occurring ? 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Exception-from-idempotentConsumer-not-propagating-to-onException-tp5775779.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to