Hi,
I have JdbcOutboundGateway
But if some JDBC exception occurs, the initial message is getting lost instead of being sent to global error channel. I see next log:Code:<jdbc:outbound-gateway update="insert into message_store (tracking_id, body) values (:headers[trackingId], :payload)" query="select body from message_store where tracking_id=:headers[$tracking_id]" request-channel="simpleChannel" reply-channel="simpleSavedChannel" data-source="dataSource"/>
Could you, please, advise how to define ErrorHandler for JdbcOutboundGateway component?Code:2011-08-04 17:23:18,978 WARN - Execution of JMS message listener failed, and no ErrorHandler has been set. org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.jdbc.JdbcOutboundGateway#0] ... nested exception is java.sql.SQLException: ORA-00001: unique constraint (XXX.TRACKING_ID_PK) violated
Thanks is advance.


Reply With Quote
