简体   繁体   中英

Spring Integration handle http outbound gateway failures

There are multiple servers that are listening to activemq. The chain is configured to make the http [outbound gateway] call. Suppose one of the server picks up the message and in-between if the http call fails for some reason. The message should be put back to the queue, so that another server can pick up the message and process. Can this be achieved using Spring Integration. I read lot on Transaction, however unable to find workable way.

是的,只要在<int-jms:message-driven-channel-adapter/>上设置acknowledge="transacted" ,并且只要您仅使用直接通道(在通道上不使用<queue/>或在task-executor上使用通道的调度程序),则任何失败都会导致消息回滚。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM