diff --git a/spring-boot-actuator/pom.xml b/spring-boot-actuator/pom.xml index 6b2ca3317e6..9a7413f7047 100644 --- a/spring-boot-actuator/pom.xml +++ b/spring-boot-actuator/pom.xml @@ -101,6 +101,11 @@ cache-api true + + javax.jms + javax.jms-api + true + javax.servlet javax.servlet-api @@ -115,6 +120,12 @@ org.apache.activemq activemq-broker true + + + geronimo-jms_1.1_spec + org.apache.geronimo.specs + + org.flywaydb diff --git a/spring-boot-autoconfigure/pom.xml b/spring-boot-autoconfigure/pom.xml index df5f390cb6a..5381898e616 100755 --- a/spring-boot-autoconfigure/pom.xml +++ b/spring-boot-autoconfigure/pom.xml @@ -154,21 +154,45 @@ org.apache.activemq activemq-broker true + + + geronimo-jms_1.1_spec + org.apache.geronimo.specs + + org.apache.activemq activemq-pool true + + + geronimo-jms_1.1_spec + org.apache.geronimo.specs + + org.apache.activemq artemis-jms-client true + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + org.apache.activemq artemis-jms-server true + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + org.apache.commons @@ -559,7 +583,7 @@ javax.jms - jms-api + javax.jms-api true diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JmsCompilerAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JmsCompilerAutoConfiguration.java index 5d85e52b54e..b8a534fdf2f 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JmsCompilerAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JmsCompilerAutoConfiguration.java @@ -41,7 +41,7 @@ public class JmsCompilerAutoConfiguration extends CompilerAutoConfiguration { @Override public void applyDependencies(DependencyCustomizer dependencies) throws CompilationFailedException { - dependencies.add("spring-jms", "jms-api"); + dependencies.add("spring-jms", "javax.jms-api"); } @Override diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index cb796040815..3e34373542e 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -98,6 +98,7 @@ 2.7.8 3.20.0-GA 1.0.0 + 2.0.1 1.5.6 1.2 1.1.6 @@ -111,7 +112,6 @@ 9.3.11.v20160721 2.2.0.v201112011158 8.0.33 - 1.1-rev-1 1.12 4.2.2 2.9.4 @@ -956,8 +956,8 @@ javax.jms - jms-api - ${jms-api.version} + javax.jms-api + ${javax-jms.version} javax.mail diff --git a/spring-boot-docs/pom.xml b/spring-boot-docs/pom.xml index d25f657bdf2..977ec42e10c 100644 --- a/spring-boot-docs/pom.xml +++ b/spring-boot-docs/pom.xml @@ -206,7 +206,7 @@ javax.jms - jms-api + javax.jms-api true @@ -243,21 +243,45 @@ org.apache.activemq activemq-client true + + + geronimo-jms_1.1_spec + org.apache.geronimo.specs + + org.apache.activemq artemis-jms-client true + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + org.apache.activemq activemq-jms-pool true + + + geronimo-jms_1.1_spec + org.apache.geronimo.specs + + org.apache.activemq artemis-jms-server true + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + org.apache.activemq diff --git a/spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml b/spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml index d55dea876c4..4d137404789 100644 --- a/spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml +++ b/spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml @@ -38,6 +38,12 @@ org.apache.activemq artemis-jms-server + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + com.h2database diff --git a/spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml b/spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml index efe0a08aee3..673e7b64c9f 100644 --- a/spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml +++ b/spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml @@ -38,6 +38,12 @@ org.apache.activemq artemis-jms-server + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + com.h2database diff --git a/spring-boot-samples/spring-boot-sample-jta-jndi/pom.xml b/spring-boot-samples/spring-boot-sample-jta-jndi/pom.xml index 5c3813275f8..a6127113cd6 100644 --- a/spring-boot-samples/spring-boot-sample-jta-jndi/pom.xml +++ b/spring-boot-samples/spring-boot-sample-jta-jndi/pom.xml @@ -45,7 +45,7 @@ javax.jms - jms-api + javax.jms-api provided diff --git a/spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml b/spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml index a49a115a564..a4d15967544 100644 --- a/spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml +++ b/spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml @@ -33,6 +33,12 @@ org.apache.activemq artemis-jms-server + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + com.h2database diff --git a/spring-boot-starters/spring-boot-starter-activemq/pom.xml b/spring-boot-starters/spring-boot-starter-activemq/pom.xml index cdae4c9256d..bcb73ed76aa 100644 --- a/spring-boot-starters/spring-boot-starter-activemq/pom.xml +++ b/spring-boot-starters/spring-boot-starter-activemq/pom.xml @@ -29,6 +29,16 @@ org.apache.activemq activemq-broker + + + geronimo-jms_1.1_spec + org.apache.geronimo.specs + + + + + javax.jms + javax.jms-api diff --git a/spring-boot-starters/spring-boot-starter-artemis/pom.xml b/spring-boot-starters/spring-boot-starter-artemis/pom.xml index 1e4b80f66a1..8ecb8fd6401 100644 --- a/spring-boot-starters/spring-boot-starter-artemis/pom.xml +++ b/spring-boot-starters/spring-boot-starter-artemis/pom.xml @@ -29,6 +29,16 @@ org.apache.activemq artemis-jms-client + + + geronimo-jms_2.0_spec + org.apache.geronimo.specs + + + + + javax.jms + javax.jms-api diff --git a/spring-boot-starters/spring-boot-starter-jta-bitronix/pom.xml b/spring-boot-starters/spring-boot-starter-jta-bitronix/pom.xml index 8d34ad08928..1ea34ba42df 100644 --- a/spring-boot-starters/spring-boot-starter-jta-bitronix/pom.xml +++ b/spring-boot-starters/spring-boot-starter-jta-bitronix/pom.xml @@ -24,7 +24,7 @@ javax.jms - jms-api + javax.jms-api javax.transaction diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml index 217f9d52f77..a4d6c53f9cb 100644 --- a/spring-boot/pom.xml +++ b/spring-boot/pom.xml @@ -71,7 +71,7 @@ javax.jms - jms-api + javax.jms-api true diff --git a/spring-boot/src/main/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBean.java b/spring-boot/src/main/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBean.java index 8f0ae5fecc1..4a764780aa6 100644 --- a/spring-boot/src/main/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBean.java +++ b/spring-boot/src/main/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBean.java @@ -21,6 +21,7 @@ import java.util.Properties; import javax.jms.JMSException; import javax.jms.XAConnection; import javax.jms.XAConnectionFactory; +import javax.jms.XAJMSContext; import bitronix.tm.resource.common.ResourceBean; import bitronix.tm.resource.common.XAStatefulHolder; @@ -140,6 +141,16 @@ public class PoolingConnectionFactoryBean extends PoolingConnectionFactory return this.connectionFactory; } + @Override + public XAJMSContext createXAContext() { + return this.connectionFactory.createXAContext(); + } + + @Override + public XAJMSContext createXAContext(String username, String password) { + return this.createXAContext(username, password); + } + } }