1

使用 JMS,从队列代码中读取消息,如下所示:

QueueReceiver qReceiver = qSession.createReceiver(queue, getIdCorrelation(msgID));
qReceiver.receive(timeOut);

从队列中读取消息后,消息不会被消耗。

4

0 回答 0