Skip to content

Commit 1bb5dc2

Browse files
committed
Update samples to use Artemis in place of HornetQ
Closes spring-projectsgh-7057
1 parent bfd62ab commit 1bb5dc2

File tree

8 files changed

+14
-30
lines changed

8 files changed

+14
-30
lines changed

spring-boot-cli/samples/jms.groovy

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package org.test
22

3-
@Grab("spring-boot-starter-hornetq")
4-
@Grab("hornetq-jms-server")
3+
@Grab("spring-boot-starter-artemis")
4+
@Grab("artemis-jms-server")
55
import java.util.concurrent.CountDownLatch
6-
import org.hornetq.jms.server.config.impl.JMSQueueConfigurationImpl
76

87
@Log
98
@Configuration
@@ -17,7 +16,7 @@ class JmsExample implements CommandLineRunner {
1716

1817
void run(String... args) {
1918
def messageCreator = { session ->
20-
session.createObjectMessage("Greetings from Spring Boot via HornetQ")
19+
session.createObjectMessage("Greetings from Spring Boot via Artemis")
2120
} as MessageCreator
2221
log.info "Sending JMS message..."
2322
jmsTemplate.send("spring-boot", messageCreator)
@@ -31,8 +30,4 @@ class JmsExample implements CommandLineRunner {
3130
latch.countDown()
3231
}
3332

34-
@Bean JMSQueueConfigurationImpl springBootQueue() {
35-
new JMSQueueConfigurationImpl('spring-boot', null, false)
36-
}
37-
3833
}

spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void txSample() throws Exception {
145145
@Test
146146
public void jmsSample() throws Exception {
147147
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");
149149
}
150150

151151
@Test

spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
</dependency>
3434
<dependency>
3535
<groupId>org.springframework.boot</groupId>
36-
<artifactId>spring-boot-starter-hornetq</artifactId>
36+
<artifactId>spring-boot-starter-artemis</artifactId>
3737
</dependency>
3838
<dependency>
39-
<groupId>org.hornetq</groupId>
40-
<artifactId>hornetq-jms-server</artifactId>
39+
<groupId>org.apache.activemq</groupId>
40+
<artifactId>artemis-jms-server</artifactId>
4141
</dependency>
4242
<dependency>
4343
<groupId>com.h2database</groupId>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
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

spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
</dependency>
3434
<dependency>
3535
<groupId>org.springframework.boot</groupId>
36-
<artifactId>spring-boot-starter-hornetq</artifactId>
36+
<artifactId>spring-boot-starter-artemis</artifactId>
3737
</dependency>
3838
<dependency>
39-
<groupId>org.hornetq</groupId>
40-
<artifactId>hornetq-jms-server</artifactId>
39+
<groupId>org.apache.activemq</groupId>
40+
<artifactId>artemis-jms-server</artifactId>
4141
</dependency>
4242
<dependency>
4343
<groupId>com.h2database</groupId>
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
spring.hornetq.mode=embedded
2-
spring.hornetq.embedded.enabled=true
3-
spring.hornetq.embedded.queues=accounts

spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
</dependency>
2929
<dependency>
3030
<groupId>org.springframework.boot</groupId>
31-
<artifactId>spring-boot-starter-hornetq</artifactId>
31+
<artifactId>spring-boot-starter-artemis</artifactId>
3232
</dependency>
3333
<dependency>
34-
<groupId>org.hornetq</groupId>
35-
<artifactId>hornetq-jms-server</artifactId>
34+
<groupId>org.apache.activemq</groupId>
35+
<artifactId>artemis-jms-server</artifactId>
3636
</dependency>
3737
<dependency>
3838
<groupId>com.h2database</groupId>
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
spring.hornetq.mode=embedded
2-
spring.hornetq.embedded.enabled=true
3-
spring.hornetq.embedded.queues=accounts
4-
51
logging.level.com.arjuna=INFO

0 commit comments

Comments
 (0)