Skip to content

Commit

Permalink
Merge branch '1.5.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Sep 29, 2016
2 parents 8b6d7ee + cd45ce9 commit 3e058e0
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 30 deletions.
11 changes: 3 additions & 8 deletions spring-boot-cli/samples/jms.groovy
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand All @@ -31,8 +30,4 @@ class JmsExample implements CommandLineRunner {
latch.countDown()
}

@Bean JMSQueueConfigurationImpl springBootQueue() {
new JMSQueueConfigurationImpl('spring-boot', null, false)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void txSample() throws Exception {
@Test
public void jmsSample() throws Exception {
String output = this.cli.run("jms.groovy");
assertThat(output).contains("Received Greetings from Spring Boot via HornetQ");
assertThat(output).contains("Received Greetings from Spring Boot via Artemis");
}

@Test
Expand Down
6 changes: 3 additions & 3 deletions spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hornetq</artifactId>
<artifactId>spring-boot-starter-artemis</artifactId>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-jms-server</artifactId>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-jms-server</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
spring.hornetq.mode=embedded
spring.hornetq.embedded.enabled=true
spring.hornetq.embedded.queues=accounts

logging.level.com.atomikos=WARN
logging.level.com.atomikos=WARN
6 changes: 3 additions & 3 deletions spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hornetq</artifactId>
<artifactId>spring-boot-starter-artemis</artifactId>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-jms-server</artifactId>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-jms-server</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
spring.hornetq.mode=embedded
spring.hornetq.embedded.enabled=true
spring.hornetq.embedded.queues=accounts
6 changes: 3 additions & 3 deletions spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hornetq</artifactId>
<artifactId>spring-boot-starter-artemis</artifactId>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-jms-server</artifactId>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-jms-server</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
spring.hornetq.mode=embedded
spring.hornetq.embedded.enabled=true
spring.hornetq.embedded.queues=accounts

logging.level.com.arjuna=INFO

0 comments on commit 3e058e0

Please sign in to comment.