PDA

View Full Version : how to get error message?



loveam
Dec 15th, 2009, 08:41 PM
hi,All:

I can not get any error message from errorChannel, here is my xml:

<service-activator input-channel="dbRequestChannel" ref="skuSubToXfgdDetService" method="mapping"/>
mapping method will throw a exception

then I want to print error with:
<poller default="true" max-messages-per-poll="1">
<interval-trigger interval="1000" />
</poller>
<channel id="errorChannel">
<queue capacity="500"/>
</channel>
<stream:stderr-channel-adapter channel="errorChannel"
append-newline="true" />

but nothing in my console, I dont know how to use it.

loveam
Dec 20th, 2009, 09:55 PM
resloved, I get answer from
http://forum.springsource.org/showthread.php?t=63715