如何读取等待排队的AMQ消息

我正在将AMQ与springboot框架一起使用,我的要求是产生一些消息并将其推送到一个DLQ队列中。 然后是一个cron作业,该作业定期运行并查找所有排队的消息,并将再次发送它们。

但是我不确定我们是否可以使用java和spring获得待处理消息。

JMS模板代码为

std::map<char,int> m{{'a',2},{'b',3},{'c',5},{'d',5}};
std::multimap<int,char> m2;
for (auto&& i : m)
    m2.insert(std::make_pair(i.second,i.first));
auto it = m2.rbegin(); // get the elem with the highest key
auto range = m2.equal_range(it->first);
for (auto it = range.first; it != range.second; ++it)
    std::cout << it->first << "," << it->second << std::endl; 

这是带有排队消息的activemq控制台屏幕截图。 我想使用Java代码阅读这些待处理的消息。

有人可以帮我这个忙吗?

谢谢

如何读取等待排队的AMQ消息

gsm174 回答:如何读取等待排队的AMQ消息

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3129472.html

大家都在问