JMS 协议是文本或二进制
我想知道JMS协议是什么?它是像http这样的文本基础协议还是二进制协议? 这些协议的层次结构是什么? (RMI > JMS 或...)
如果您向我介绍学习这些协议层次结构的好参考,我将非常感谢。
RGDS
I want to know what is the JMS protocol? is it text base protocol like http or a binary?
What is the hierarchy of these kind of protocols? ( RMI > JMS or ... )
I will thank you if you introduce me good reference for learning these protocols hierarchies.
RGDS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
JMS 是一个 API 规范,它没有定义任何有关底层协议的内容。
我想大多数 JMS 服务器实现都使用二进制协议,EMS 是我最有经验的协议,当然也是如此。
最好的起点是此处的文档
AMQP 是一种消息传递标准,它然而,定义了在线协议,并且它是二进制的。
JMS is an api specification, it doesn't define anything about the underlying protocol.
I would imagine that most JMS server implementations use a binary protocol, EMS which is the one I have had most experience with most certainly does.
Best place to start is the docs at here
AMQP is a messaging standard which does however define the on the wire protocol, and it is binary.
JMS 不是一种协议。它是一个规范。许多 MOM 供应商实施此规范并提供用于消息传递的 API。 JMS 实现是特定于供应商的。因此,首先了解 JMS 规范,然后选择您的 JMS 提供商。
JMS is not a protocol. It is a specification. Many MOM vendors implement this specification and provide API for messaging. JMS implementations are vendor specific. So first understand JMS specs and then select your JMS provider.
JMS消息可以是BytesMessage,而JMS消息的主体是二进制数据。
JMS 消息也可以是 TextMessage,而 JMS 消息的正文是字符串数据。
JMS 完全依赖 JMS Provider 实现。
您必须首先熟悉抽象规范,而不是根据您要使用的 JMS 供应商 impl 寻求文档。大多数供应商都遵循该规范,但也对其进行了扩展。我会说 ActiveMQ 和 HornetQ 是最受欢迎的免费许可消息代理。这是关于 JMS 的入门教程,但如果您已经选择了特定供应商,最好遵循他们的起始文档。
The JMS message can be a BytesMessage, than the body of the JMS message is binary data.
Also the JMS message can be a TextMessage, than the body of the JMS message is string data.
JMS is completely dependent on the JMS Provider implementation.
You have to first familiarize yourself with the abstract specification, than seek documentation depending on the JMS Vendor impl you're going to use. Most vendors follow the specification, but also extend it. I would say ActiveMQ and HornetQ are the most popular free license message brokers. Here's a starting tutorial on JMS, but if you have already chosen a specific vendor, it's best to follow their starting docs.
它要么 - 事实上 JMS 有两种特定的消息类型来涵盖这些情况。
Id 以 wiki 开头 - http://en.wikipedia.org/wiki/Java_Message_Service
然后采取看一下 http://docs.oracle.com/javaee/1.3/jms/tutorial/
Its either - in fact JMS has two specific message types to cover those cases.
Id start with wiki - http://en.wikipedia.org/wiki/Java_Message_Service
And then take a look at http://docs.oracle.com/javaee/1.3/jms/tutorial/