There is already a delivery set for auto ack :false
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条消息发送