简体   繁体   中英

When connecting to a JMS server, does the client have to be using the same API that the server is using?

例如,由于我们的服务器使用的是TIBCO EMS,是否可以使用OpenJMS或WeblogicJMS连接到该服务器?

JMS standardizes the API, but not the wire-protocol. So all JMS implementations are based on the same API interfaces , but you will require different implementation libraries/jar-files in your class-path that match the server you're connecting to. In the TIBCO EMS case, if you're connecting to a EMS, you'll need tibjms.jar and possibly other of this jars; you cannot use something from OpenJMS etc. instead since they use different wire-protocols.

JMS is pretty much the same as JDBC in this regard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM