首页 > 解决方案 > Does spring-jms 5.x require JMS 2.0?

问题描述

I can see in spring-jms.gradle that starting with 5.0.0, the dependency to the JMS API changed from 1.1 to 2.0.

However, my question is: does this mean that spring-jms 5.x actually requires the provider to implement JMS 2.0?

I cannot find a clear requirement for th JMS version in the spring documentation neither in the Javadoc of the main spring-jms classes (like @EnableJms). For other JEE APIs like servlet-api or JPA, spring documentation/javadocs make this clearer.

Today, I still use spring 4.x and want to upgrade to 5.x, however I use a JMS provider (Oracle AQ) that implements only JMS 1.1. I would like to be sure whether spring-jms may make use of specific JMS 2.0 features like JMSContext.

标签: springspring-jms

解决方案


I believe it's backwards-compatible, so as long as you don't try to use any 2.0 features, you should be ok.

Why don't you just give it a try?


推荐阅读