批量使用JMS消息 [英] Batch consuming of JMS messages
本文介绍了批量使用JMS消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
MessageListener
接口仅定义一个方法onMessage
,该方法接收单个Message
作为参数.我正在寻找一种从队列中获取多个Message
的方法,以便我可以处理该批处理,然后确认该批处理中的所有Message
.
The MessageListener
interface only defines a method onMessage
that receives a single Message
as argument. I'm looking for a way to get multiple Message
s from a queue so that I can process the batch and then acknowledge all the Message
s in the batch.
JMS世界中是否有这样的功能?如果没有,ActiveMQ是否支持它作为扩展?
Is there such feature in JMS world? If no, is it supported by ActiveMQ as an extension?
谢谢,米凯尔
推荐答案
查看全文