JMS的消息session接受后设置值进去会报 There is already a delivery set for auto ack :false。代码
session = connection.createQueueSession([color=red]false[/color], QueueSession.AUTO_ACKNOWLEDGE);
先改为
session = connection.createQueueSession([color=red]true[/color], QueueSession.AUTO_ACKNOWLEDGE);试试,待会儿看结果
结果不行,暂时先换成2条消息发送
session = connection.createQueueSession([color=red]false[/color], QueueSession.AUTO_ACKNOWLEDGE);
先改为
session = connection.createQueueSession([color=red]true[/color], QueueSession.AUTO_ACKNOWLEDGE);试试,待会儿看结果
结果不行,暂时先换成2条消息发送
本文探讨了在使用JMS消息时遇到的session配置错误,并提供了调整session参数的解决方案,通过将autoAck属性从false更改为true来解决'Thereisalreadyadeliverysetforautoack:false'的问题。
4928

被折叠的 条评论
为什么被折叠?



