【发布时间】:2015-08-08 01:21:12
【问题描述】:
我有一个简单的发布者,它将消息发送到队列。
<int:channel id="publishChannel"/>
<int-jms:outbound-channel-adapter channel="publishChannel" destination="testQueue" session-transacted="true"/>
@Publisher(channel = "publishChannel")
public String sendMessage (String text) {
return text;
}
如果代理崩溃,发布者会抛出 MessageHandlingException。
是否可以阻止发布者,直到代理再次可用或定期重试?
【问题讨论】:
标签: spring jms spring-integration spring-jms