Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
f82dc8e0
Commit
f82dc8e0
authored
Sep 29, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to JMS API 2.0
Closes gh-7049
parent
4d64c9c9
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
117 additions
and
9 deletions
+117
-9
pom.xml
spring-boot-actuator/pom.xml
+11
-0
pom.xml
spring-boot-autoconfigure/pom.xml
+25
-1
JmsCompilerAutoConfiguration.java
.../compiler/autoconfigure/JmsCompilerAutoConfiguration.java
+1
-1
pom.xml
spring-boot-dependencies/pom.xml
+3
-3
pom.xml
spring-boot-docs/pom.xml
+25
-1
pom.xml
spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml
+6
-0
pom.xml
spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml
+6
-0
pom.xml
spring-boot-samples/spring-boot-sample-jta-jndi/pom.xml
+1
-1
pom.xml
spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml
+6
-0
pom.xml
spring-boot-starters/spring-boot-starter-activemq/pom.xml
+10
-0
pom.xml
spring-boot-starters/spring-boot-starter-artemis/pom.xml
+10
-0
pom.xml
...ng-boot-starters/spring-boot-starter-jta-bitronix/pom.xml
+1
-1
pom.xml
spring-boot/pom.xml
+1
-1
PoolingConnectionFactoryBean.java
...ework/boot/jta/bitronix/PoolingConnectionFactoryBean.java
+11
-0
No files found.
spring-boot-actuator/pom.xml
View file @
f82dc8e0
...
@@ -101,6 +101,11 @@
...
@@ -101,6 +101,11 @@
<artifactId>
cache-api
</artifactId>
<artifactId>
cache-api
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
</dependency>
</dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<artifactId>
javax.jms-api
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<artifactId>
javax.servlet-api
</artifactId>
...
@@ -115,6 +120,12 @@
...
@@ -115,6 +120,12 @@
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
activemq-broker
</artifactId>
<artifactId>
activemq-broker
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_1.1_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.flywaydb
</groupId>
<groupId>
org.flywaydb
</groupId>
...
...
spring-boot-autoconfigure/pom.xml
View file @
f82dc8e0
...
@@ -154,21 +154,45 @@
...
@@ -154,21 +154,45 @@
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
activemq-broker
</artifactId>
<artifactId>
activemq-broker
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_1.1_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
activemq-pool
</artifactId>
<artifactId>
activemq-pool
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_1.1_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-client
</artifactId>
<artifactId>
artemis-jms-client
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-server
</artifactId>
<artifactId>
artemis-jms-server
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<groupId>
org.apache.commons
</groupId>
...
@@ -559,7 +583,7 @@
...
@@ -559,7 +583,7 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<groupId>
javax.jms
</groupId>
<artifactId>
jms-api
</artifactId>
<artifactId>
j
avax.j
ms-api
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JmsCompilerAutoConfiguration.java
View file @
f82dc8e0
...
@@ -41,7 +41,7 @@ public class JmsCompilerAutoConfiguration extends CompilerAutoConfiguration {
...
@@ -41,7 +41,7 @@ public class JmsCompilerAutoConfiguration extends CompilerAutoConfiguration {
@Override
@Override
public
void
applyDependencies
(
DependencyCustomizer
dependencies
)
public
void
applyDependencies
(
DependencyCustomizer
dependencies
)
throws
CompilationFailedException
{
throws
CompilationFailedException
{
dependencies
.
add
(
"spring-jms"
,
"jms-api"
);
dependencies
.
add
(
"spring-jms"
,
"j
avax.j
ms-api"
);
}
}
@Override
@Override
...
...
spring-boot-dependencies/pom.xml
View file @
f82dc8e0
...
@@ -98,6 +98,7 @@
...
@@ -98,6 +98,7 @@
<janino.version>
2.7.8
</janino.version>
<janino.version>
2.7.8
</janino.version>
<javassist.version>
3.20.0-GA
</javassist.version>
<!-- Same as Hibernate -->
<javassist.version>
3.20.0-GA
</javassist.version>
<!-- Same as Hibernate -->
<javax-cache.version>
1.0.0
</javax-cache.version>
<javax-cache.version>
1.0.0
</javax-cache.version>
<javax-jms.version>
2.0.1
</javax-jms.version>
<javax-mail.version>
1.5.6
</javax-mail.version>
<javax-mail.version>
1.5.6
</javax-mail.version>
<javax-transaction.version>
1.2
</javax-transaction.version>
<javax-transaction.version>
1.2
</javax-transaction.version>
<jaxen.version>
1.1.6
</jaxen.version>
<jaxen.version>
1.1.6
</jaxen.version>
...
@@ -111,7 +112,6 @@
...
@@ -111,7 +112,6 @@
<jetty.version>
9.3.11.v20160721
</jetty.version>
<jetty.version>
9.3.11.v20160721
</jetty.version>
<jetty-jsp.version>
2.2.0.v201112011158
</jetty-jsp.version>
<jetty-jsp.version>
2.2.0.v201112011158
</jetty-jsp.version>
<jetty-el.version>
8.0.33
</jetty-el.version>
<jetty-el.version>
8.0.33
</jetty-el.version>
<jms-api.version>
1.1-rev-1
</jms-api.version>
<jmustache.version>
1.12
</jmustache.version>
<jmustache.version>
1.12
</jmustache.version>
<jna.version>
4.2.2
</jna.version>
<jna.version>
4.2.2
</jna.version>
<joda-time.version>
2.9.4
</joda-time.version>
<joda-time.version>
2.9.4
</joda-time.version>
...
@@ -956,8 +956,8 @@
...
@@ -956,8 +956,8 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<groupId>
javax.jms
</groupId>
<artifactId>
jms-api
</artifactId>
<artifactId>
j
avax.j
ms-api
</artifactId>
<version>
${j
ms-api
.version}
</version>
<version>
${j
avax-jms
.version}
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.mail
</groupId>
<groupId>
javax.mail
</groupId>
...
...
spring-boot-docs/pom.xml
View file @
f82dc8e0
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<groupId>
javax.jms
</groupId>
<artifactId>
jms-api
</artifactId>
<artifactId>
j
avax.j
ms-api
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -243,21 +243,45 @@
...
@@ -243,21 +243,45 @@
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
activemq-client
</artifactId>
<artifactId>
activemq-client
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_1.1_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-client
</artifactId>
<artifactId>
artemis-jms-client
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
activemq-jms-pool
</artifactId>
<artifactId>
activemq-jms-pool
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_1.1_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-server
</artifactId>
<artifactId>
artemis-jms-server
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml
View file @
f82dc8e0
...
@@ -38,6 +38,12 @@
...
@@ -38,6 +38,12 @@
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-server
</artifactId>
<artifactId>
artemis-jms-server
</artifactId>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml
View file @
f82dc8e0
...
@@ -38,6 +38,12 @@
...
@@ -38,6 +38,12 @@
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-server
</artifactId>
<artifactId>
artemis-jms-server
</artifactId>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-jndi/pom.xml
View file @
f82dc8e0
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<groupId>
javax.jms
</groupId>
<artifactId>
jms-api
</artifactId>
<artifactId>
j
avax.j
ms-api
</artifactId>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml
View file @
f82dc8e0
...
@@ -33,6 +33,12 @@
...
@@ -33,6 +33,12 @@
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-server
</artifactId>
<artifactId>
artemis-jms-server
</artifactId>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-starters/spring-boot-starter-activemq/pom.xml
View file @
f82dc8e0
...
@@ -29,6 +29,16 @@
...
@@ -29,6 +29,16 @@
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
activemq-broker
</artifactId>
<artifactId>
activemq-broker
</artifactId>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_1.1_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<artifactId>
javax.jms-api
</artifactId>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
spring-boot-starters/spring-boot-starter-artemis/pom.xml
View file @
f82dc8e0
...
@@ -29,6 +29,16 @@
...
@@ -29,6 +29,16 @@
<dependency>
<dependency>
<groupId>
org.apache.activemq
</groupId>
<groupId>
org.apache.activemq
</groupId>
<artifactId>
artemis-jms-client
</artifactId>
<artifactId>
artemis-jms-client
</artifactId>
<exclusions>
<exclusion>
<artifactId>
geronimo-jms_2.0_spec
</artifactId>
<groupId>
org.apache.geronimo.specs
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<artifactId>
javax.jms-api
</artifactId>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
spring-boot-starters/spring-boot-starter-jta-bitronix/pom.xml
View file @
f82dc8e0
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<groupId>
javax.jms
</groupId>
<artifactId>
jms-api
</artifactId>
<artifactId>
j
avax.j
ms-api
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.transaction
</groupId>
<groupId>
javax.transaction
</groupId>
...
...
spring-boot/pom.xml
View file @
f82dc8e0
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.jms
</groupId>
<groupId>
javax.jms
</groupId>
<artifactId>
jms-api
</artifactId>
<artifactId>
j
avax.j
ms-api
</artifactId>
<optional>
true
</optional>
<optional>
true
</optional>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
spring-boot/src/main/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBean.java
View file @
f82dc8e0
...
@@ -21,6 +21,7 @@ import java.util.Properties;
...
@@ -21,6 +21,7 @@ import java.util.Properties;
import
javax.jms.JMSException
;
import
javax.jms.JMSException
;
import
javax.jms.XAConnection
;
import
javax.jms.XAConnection
;
import
javax.jms.XAConnectionFactory
;
import
javax.jms.XAConnectionFactory
;
import
javax.jms.XAJMSContext
;
import
bitronix.tm.resource.common.ResourceBean
;
import
bitronix.tm.resource.common.ResourceBean
;
import
bitronix.tm.resource.common.XAStatefulHolder
;
import
bitronix.tm.resource.common.XAStatefulHolder
;
...
@@ -140,6 +141,16 @@ public class PoolingConnectionFactoryBean extends PoolingConnectionFactory
...
@@ -140,6 +141,16 @@ public class PoolingConnectionFactoryBean extends PoolingConnectionFactory
return
this
.
connectionFactory
;
return
this
.
connectionFactory
;
}
}
@Override
public
XAJMSContext
createXAContext
()
{
return
this
.
connectionFactory
.
createXAContext
();
}
@Override
public
XAJMSContext
createXAContext
(
String
username
,
String
password
)
{
return
this
.
createXAContext
(
username
,
password
);
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment