用于将测试消息发布到 JMS 队列的工具?

发布于 2024-07-05 12:16:06 字数 1557 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(12

贪了杯 2024-07-12 12:16:06

ActiveMQ 的基于 Web 的管理控制台有一个很大的缺陷 - 在发布消息时无法指定任何标头/自定义属性。

我遇到了一个简洁的 FOSS 工具,可以发布消息并指定标头/属性:

http://sourceforge.net /projects/activemqbrowser/

HTH

The ActiveMQ's web-based admin console has a big deficiency - one cannot specify any headers / custom properties when posting a message.

I came across a neat FOSS tool that can post a message and also specify headers/properties:

http://sourceforge.net/projects/activemqbrowser/

HTH

み格子的夏天 2024-07-12 12:16:06

这个答案并不适用于所有 JMS 代理,但如果您碰巧使用 Apache ActiveMQ,则 web-基于管理控制台(默认为 http://localhost:8161/admin)允许您手动发送短信至主题或队列。 调试起来很方便。

This answer doesn't apply to all JMS brokers, but if you happen to be using Apache ActiveMQ, the web-based admin console (by default at http://localhost:8161/admin) allows you to manually send text messages to topics or queues. It's handy for debugging.

幼儿园老大 2024-07-12 12:16:06

HermesJMS 似乎是一个与 JMS 提供者交互的相当强大的客户端。 但在我看来,它非常不直观并且很难设置。 (至少我大部分都失败了......)

其他更用户友好的客户端通常是特定于供应商的。 Sonic Message Manager 是一个非常好用且易于使用的开源 JMS 客户端,适用于 SonicMQ。 如果有这样的客户与不同的提供商合作,那就太好了。

HermesJMS seems to be a rather powerful client for interacting with JMS providers. In my opinion, it is pretty unintuitive and hard to set up, though. (At least I'm mostly failing at it...)

Other, more user-friendly clients are often vendor-specific. Sonic Message Manager is a very nice and simple-to-use open-source JMS client for SonicMQ. It would be great to have a client like that working with different providers.

鲜肉鲜肉永远不皱 2024-07-12 12:16:06

Apache JMeter 是一个工具(为 Java 平台编写),它允许:

  • 将消息发送到队列(点对点)

  • 发布/订阅主题

  • 发送持久和非持久消息

  • 发送文本、映射和对象消息

Apache ActiveMQ 包括 ProducerTool 和 ConsumerTool 示例源 ​​(Java),以及许多命令行配置选项。 由于它基于 JMS API,因此只需进行少量修改即可轻松地将其与其他消息代理一起使用。

Apache JMeter is a tool (written for the Java platform) which allows:

  • sending messages to a queue ( point to point)

  • publishing/subscribing to a topic

  • sending both persistent and non persistent messages

  • sending text , map and object messages

Apache ActiveMQ includes a ProducerTool and a ConsumerTool example sources (Java) with many command-line configuration options. As it is based on the JMS API, using it with other message brokers should be easy with minor modifications.

幽梦紫曦~ 2024-07-12 12:16:06

IBM 提供了一个免费、功能强大的名为 perfha​​rness 的命令行工具

尽管旨在对 JMS 提供程序进行基准测试,但它确实非常擅长生成(和使用)测试消息。 您可以使用随机生成的数据或从文件中获取的数据。

强大的功能包括以固定速率发送和消费消息、使用特定数量的线程、使用 JMS 或本机 MQ 等。它会生成统计数据,准确告诉您队列的执行速度(因此得名)。

唯一的缺点是,考虑到它支持的操作数量,它不是超级直观。

IBM provide a free, powerful command line tool called perfharness.

Although aimed at benchmarking JMS providers, it's really good at generating (and consuming) test messages. You can use data either generated randomly or taken from a file.

The power features include sending and consuming messages at a fixed rate, using a specific number of threads, using either JMS or native MQ, etc. It generates statistics telling you exactly how fast your queue is performing (hence the name).

The only down side is that it's not super intuitive, given the number of operations it supports.

音盲 2024-07-12 12:16:06

我推荐@Will的方法并使用ActiveMQ的Web控制台,它可以让你发布消息并轻松浏览队列或删除消息。

我经常使用的另一种方法是使用文件目录作为示例数据,并使用 Camel 路由将消息从目录移动到 JMS 队列 - 或者从队列中取出它们并将它们保存到磁盘等,

例如

from("file://someDirectory").
  to("activemq:MyQueue");

这会将所有文件从 someDirectory 移动并将它们发送到名为 MyQueue 的 ActiveMQ 队列。 如果您希望将文件保留在原处,可以使用 URI“file://someDirectory?noop=true”。

有关更多详细信息,请参阅

I recommend the approach of @Will and using the Web Console of ActiveMQ which lets you post messages and browse queues or delete messages easily.

Another approach I often use is to use a directory of files as sample data and use a Camel route to move the messages from the directory to a JMS queue - or to take them from a queue and save them to disk etc

e.g.

from("file://someDirectory").
  to("activemq:MyQueue");

This would move all the files from someDirectory and send them to an ActiveMQ queue called MyQueue. If you'd rather leave the files in place you can use the URI "file://someDirectory?noop=true".

For more details see

再浓的妆也掩不了殇 2024-07-12 12:16:06

此外,如果 JMS 代理像 ActiveMQ 一样支持 JMX,您可以使用 JConsole 来发布消息并执行更多操作。

Also if the JMS broker supports JMX like ActiveMQ does you can use JConsole to post message and do a lot more.

半暖夏伤 2024-07-12 12:16:06

ActiveMQ 有一个用于发送测试消息的 Web 控制台(如上所述),但如果您的提供商没有此功能,那么最简单的方法可能是编写一个控制台应用程序/网页来发布测试消息。 在 JMS 中发送消息并不太难,您只需编写自己的测试客户端即可获得最大的好处。

如果您可以在 Java 中使用 Spring,它有一些非常强大的实用程序,请查看 JmsTemplate

ActiveMQ has a web console for sending test messages (like mentioned above), but if your provider doesn't have this, it might be easiest to just write a console app/web page to post test messages. Sending a message in JMS isn't too hard, you might get the most benefit just writing your own test client.

If you can use Spring in Java, it has some really powerful utilities, check out the JmsTemplate.

み青杉依旧 2024-07-12 12:16:06

我不知道有一个简单的客户端。 我记得很久以前,当我研究不同的队列系统并尝试JMS时,我一直在寻找一个,当时找不到,现在也找不到。 但有一件事 - 有大量的教程可以帮助您入门,您可以通过一个简单的表格来实现这一目标。

很抱歉没有提供更多帮助。

I'm not aware of a simple client. I remember looking for one a long time ago when I researched different queue systems and trying JMS I couldn't find one then, and I couldn't find one now. One thing though - there are a ton of tutorials that get you started and you could do a simple form to achieve that.

Sorry to be not more helpful.

喵星人汪星人 2024-07-12 12:16:06

我构建了一个 GUI 工具来管理开源 JMS 服务器(当前是 Activemq 和 Hornetq)。 它可以发送和接收消息以及大多数常用的东西,以及将队列和主题聚合到逻辑“组”中。

它是一个商业产品,但BETA 是免费的并且功能齐全。

请在 http://www.rockeyesoftware.com/ 尝试一下

I have built a GUI tool for administering Open Source JMS Servers (Currently Activemq and Hornetq). It can send and receive messages and most of the usual stuff, as well as aggregate queues and topics into logical "groups".

Its a commercial product but the BETA is free and is fully functional.

try it out at http://www.rockeyesoftware.com/

铜锣湾横着走 2024-07-12 12:16:06

对于 ActiveMQ,示例目录包含脚本。 对于 Rubyists,请查看 example/ruby/stompcat.rb 和 catstomp.rb 以进行订阅和发布。

For ActiveMQ the examples directory holds scripts. For Rubyists, look at example/ruby/stompcat.rb and catstomp.rb for subscribing and publishing.

风吹雨成花 2024-07-12 12:16:06

我是一名巴西开发人员,我为 Post HTTP 和 JMS 消息制作了一个 Java 程序,可以在以下位置下载: https://sites.google.com/site/felipeglino/softwares/posttool

在该页面中您可以找到英文说明。

I'm a brazilian developer and I made a Java program for Post HTTP and JMS Messages his available for download at: https://sites.google.com/site/felipeglino/softwares/posttool

In thath page you can found english instructions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文