Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 JMS,从队列代码中读取消息,如下所示:
QueueReceiver qReceiver = qSession.createReceiver(queue, getIdCorrelation(msgID)); qReceiver.receive(timeOut);
从队列中读取消息后,消息不会被消耗。