Java JMS mix messaging implementations

帅比萌擦擦* 提交于 2019-12-13 08:09:34

问题


Is it possible to use java messaging with mixed implementations.

E.g.: Is it possible to connect an ActiveMQ client directly to an MQSeries(IBM) server to read/write messages from/to the message queue?


回答1:


JMS is an API specification, not a wire format specification. JMS describes the signature of APIs. It does not say how the internals should be implemented. Hence JMS client library implementations are Messaging Provider specific.

A IBM MQ JMS Client knows how (i.e wire format) to communicate with IBM MQ. Similarly Active MQ JMS client knows how to speak to Active MQ JMS provider. Since the implementations are different, Active MQ JMS Client will not be communicate with IBM MQ.




回答2:


no, each client implementation is specific to broker, maybe only with client for amqp protocol if supported




回答3:


It is possible with the standardized wire protocols that both brokers support-- AMQP and MQTT, but as previous commenters noted it is not possible with JMS.



来源:https://stackoverflow.com/questions/39507846/java-jms-mix-messaging-implementations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!