ITeye博客

There is already a delivery set for auto ack :false

bawking · 2011-07-19 14:53 · java · 编程语言 · Markdown

JMS的消息session接受后设置值进去会报 There is already a delivery set for auto ack :false。代码 session = connection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);

先改为 session = connection.createQueueSession(true, QueueSession.AUTO_ACKNOWLEDGE);试试,待会儿看结果

结果不行,暂时先换成2条消息发送

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。