File tree Expand file tree Collapse file tree 8 files changed +14
-30
lines changed
src/test/java/org/springframework/boot/cli
spring-boot-sample-jta-atomikos
spring-boot-sample-jta-bitronix
spring-boot-sample-jta-narayana Expand file tree Collapse file tree 8 files changed +14
-30
lines changed Original file line number Diff line number Diff line change 1
1
package org.test
2
2
3
- @Grab (" spring-boot-starter-hornetq " )
4
- @Grab (" hornetq -jms-server" )
3
+ @Grab (" spring-boot-starter-artemis " )
4
+ @Grab (" artemis -jms-server" )
5
5
import java.util.concurrent.CountDownLatch
6
- import org.hornetq.jms.server.config.impl.JMSQueueConfigurationImpl
7
6
8
7
@Log
9
8
@Configuration
@@ -17,7 +16,7 @@ class JmsExample implements CommandLineRunner {
17
16
18
17
void run (String ... args ) {
19
18
def messageCreator = { session ->
20
- session. createObjectMessage(" Greetings from Spring Boot via HornetQ " )
19
+ session. createObjectMessage(" Greetings from Spring Boot via Artemis " )
21
20
} as MessageCreator
22
21
log. info " Sending JMS message..."
23
22
jmsTemplate. send(" spring-boot" , messageCreator)
@@ -31,8 +30,4 @@ class JmsExample implements CommandLineRunner {
31
30
latch. countDown()
32
31
}
33
32
34
- @Bean JMSQueueConfigurationImpl springBootQueue () {
35
- new JMSQueueConfigurationImpl (' spring-boot' , null , false )
36
- }
37
-
38
33
}
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public void txSample() throws Exception {
145
145
@ Test
146
146
public void jmsSample () throws Exception {
147
147
String output = this .cli .run ("jms.groovy" );
148
- assertThat (output ).contains ("Received Greetings from Spring Boot via HornetQ " );
148
+ assertThat (output ).contains ("Received Greetings from Spring Boot via Artemis " );
149
149
}
150
150
151
151
@ Test
Original file line number Diff line number Diff line change 33
33
</dependency >
34
34
<dependency >
35
35
<groupId >org.springframework.boot</groupId >
36
- <artifactId >spring-boot-starter-hornetq </artifactId >
36
+ <artifactId >spring-boot-starter-artemis </artifactId >
37
37
</dependency >
38
38
<dependency >
39
- <groupId >org.hornetq </groupId >
40
- <artifactId >hornetq -jms-server</artifactId >
39
+ <groupId >org.apache.activemq </groupId >
40
+ <artifactId >artemis -jms-server</artifactId >
41
41
</dependency >
42
42
<dependency >
43
43
<groupId >com.h2database</groupId >
Original file line number Diff line number Diff line change 1
- spring.hornetq.mode =embedded
2
- spring.hornetq.embedded.enabled =true
3
- spring.hornetq.embedded.queues =accounts
4
-
5
- logging.level.com.atomikos =WARN
1
+ logging.level.com.atomikos =WARN
Original file line number Diff line number Diff line change 33
33
</dependency >
34
34
<dependency >
35
35
<groupId >org.springframework.boot</groupId >
36
- <artifactId >spring-boot-starter-hornetq </artifactId >
36
+ <artifactId >spring-boot-starter-artemis </artifactId >
37
37
</dependency >
38
38
<dependency >
39
- <groupId >org.hornetq </groupId >
40
- <artifactId >hornetq -jms-server</artifactId >
39
+ <groupId >org.apache.activemq </groupId >
40
+ <artifactId >artemis -jms-server</artifactId >
41
41
</dependency >
42
42
<dependency >
43
43
<groupId >com.h2database</groupId >
Original file line number Diff line number Diff line change 1
- spring.hornetq.mode =embedded
2
- spring.hornetq.embedded.enabled =true
3
- spring.hornetq.embedded.queues =accounts
Original file line number Diff line number Diff line change 28
28
</dependency >
29
29
<dependency >
30
30
<groupId >org.springframework.boot</groupId >
31
- <artifactId >spring-boot-starter-hornetq </artifactId >
31
+ <artifactId >spring-boot-starter-artemis </artifactId >
32
32
</dependency >
33
33
<dependency >
34
- <groupId >org.hornetq </groupId >
35
- <artifactId >hornetq -jms-server</artifactId >
34
+ <groupId >org.apache.activemq </groupId >
35
+ <artifactId >artemis -jms-server</artifactId >
36
36
</dependency >
37
37
<dependency >
38
38
<groupId >com.h2database</groupId >
Original file line number Diff line number Diff line change 1
- spring.hornetq.mode =embedded
2
- spring.hornetq.embedded.enabled =true
3
- spring.hornetq.embedded.queues =accounts
4
-
5
1
logging.level.com.arjuna =INFO
You can’t perform that action at this time.
0 commit comments