Update samples to use Artemis in place of HornetQ

Closes gh-7057
This commit is contained in:
Andy Wilkinson
2016-09-29 11:51:33 +01:00
parent bfd62aba10
commit 1bb5dc205d
8 changed files with 14 additions and 30 deletions

View File

@@ -1,9 +1,8 @@
package org.test
@Grab("spring-boot-starter-hornetq")
@Grab("hornetq-jms-server")
@Grab("spring-boot-starter-artemis")
@Grab("artemis-jms-server")
import java.util.concurrent.CountDownLatch
import org.hornetq.jms.server.config.impl.JMSQueueConfigurationImpl
@Log
@Configuration
@@ -17,7 +16,7 @@ class JmsExample implements CommandLineRunner {
void run(String... args) {
def messageCreator = { session ->
session.createObjectMessage("Greetings from Spring Boot via HornetQ")
session.createObjectMessage("Greetings from Spring Boot via Artemis")
} as MessageCreator
log.info "Sending JMS message..."
jmsTemplate.send("spring-boot", messageCreator)
@@ -31,8 +30,4 @@ class JmsExample implements CommandLineRunner {
latch.countDown()
}
@Bean JMSQueueConfigurationImpl springBootQueue() {
new JMSQueueConfigurationImpl('spring-boot', null, false)
}
}