Error handling using poller

583 views Asked by At

I'm trying to handle errors using a the int:poller without success. I defined an error-channel on the poller but when an error occurs, nothing goes to that channel. Here's my code. Any ideas?

<int:channel id="auditRequestMessagesChannel">
    <int:queue />
</int:channel>
<int:service-activator id="auditRequestMessages" input-channel="auditRequestMessagesChannel" ref="auditTaskBean" method="registerEvent" >
    <int:poller fixed-rate="1000" error-channel="auditErrorChannel" />
</int:service-activator>
<int:channel id="auditErrorChannel" />
<int:logging-channel-adapter id="auditErrorChannelLogger" channel="auditErrorChannel" expression="'[Audit] '+#this"/>
1

There are 1 answers

2
Gary Russell On

Turn on DEBUG logging and take a look at the log; if it's still not clear what's happening, post the log someplace.