Nevin
Nevin

Reputation: 779

How to find JMS version used in an application?

I have an application which uses JMS api. The Application server used is jboss-5.0.0.CR2. Is there any way to get the version of JMS used?

Upvotes: 0

Views: 3652

Answers (2)

Nevin
Nevin

Reputation: 779

Here is how to distinguish between JMS version 1.1 and 2.0.

  • JMS 2.0 API consists of three new interfaces: JMSContext, JMSProducer, and JMSConsumer
  • JMSContext replaces the separate Connection and Session objects in in version 1.1 with a single object.
  • JMSProducer replaces MessageProducer object in version 1.1
  • JMSConsumer replaces the MessageConsumer object in version 1.1

More details: http://www.oracle.com/technetwork/articles/java/jms20-1947669.html

Upvotes: 1

Abhishek
Abhishek

Reputation: 1225

jboss-5.0.0.CR2 is the application server version - not the JMS provider. From what I know, HornetQ is the JMS implementation which JBoss uses. Anyway, since JBoss 5 is Java EE 5 compliant, the JMS API version has to be 1.0. Java EE 6 aligns with JMS 1.1 and Java EE 7 has the latest JMS specification version i.e. 2.0

Upvotes: 0

Related Questions