Merge branch '1.5.x'
This commit is contained in:
commit
3e058e038f
|
|
@ -1,9 +1,8 @@
|
||||||
package org.test
|
package org.test
|
||||||
|
|
||||||
@Grab("spring-boot-starter-hornetq")
|
@Grab("spring-boot-starter-artemis")
|
||||||
@Grab("hornetq-jms-server")
|
@Grab("artemis-jms-server")
|
||||||
import java.util.concurrent.CountDownLatch
|
import java.util.concurrent.CountDownLatch
|
||||||
import org.hornetq.jms.server.config.impl.JMSQueueConfigurationImpl
|
|
||||||
|
|
||||||
@Log
|
@Log
|
||||||
@Configuration
|
@Configuration
|
||||||
|
|
@ -17,7 +16,7 @@ class JmsExample implements CommandLineRunner {
|
||||||
|
|
||||||
void run(String... args) {
|
void run(String... args) {
|
||||||
def messageCreator = { session ->
|
def messageCreator = { session ->
|
||||||
session.createObjectMessage("Greetings from Spring Boot via HornetQ")
|
session.createObjectMessage("Greetings from Spring Boot via Artemis")
|
||||||
} as MessageCreator
|
} as MessageCreator
|
||||||
log.info "Sending JMS message..."
|
log.info "Sending JMS message..."
|
||||||
jmsTemplate.send("spring-boot", messageCreator)
|
jmsTemplate.send("spring-boot", messageCreator)
|
||||||
|
|
@ -31,8 +30,4 @@ class JmsExample implements CommandLineRunner {
|
||||||
latch.countDown()
|
latch.countDown()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean JMSQueueConfigurationImpl springBootQueue() {
|
|
||||||
new JMSQueueConfigurationImpl('spring-boot', null, false)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ public class SampleIntegrationTests {
|
||||||
@Test
|
@Test
|
||||||
public void jmsSample() throws Exception {
|
public void jmsSample() throws Exception {
|
||||||
String output = this.cli.run("jms.groovy");
|
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
|
@Test
|
||||||
|
|
|
||||||
|
|
@ -33,11 +33,11 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-hornetq</artifactId>
|
<artifactId>spring-boot-starter-artemis</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hornetq</groupId>
|
<groupId>org.apache.activemq</groupId>
|
||||||
<artifactId>hornetq-jms-server</artifactId>
|
<artifactId>artemis-jms-server</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
spring.hornetq.mode=embedded
|
logging.level.com.atomikos=WARN
|
||||||
spring.hornetq.embedded.enabled=true
|
|
||||||
spring.hornetq.embedded.queues=accounts
|
|
||||||
|
|
||||||
logging.level.com.atomikos=WARN
|
|
||||||
|
|
@ -33,11 +33,11 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-hornetq</artifactId>
|
<artifactId>spring-boot-starter-artemis</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hornetq</groupId>
|
<groupId>org.apache.activemq</groupId>
|
||||||
<artifactId>hornetq-jms-server</artifactId>
|
<artifactId>artemis-jms-server</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
spring.hornetq.mode=embedded
|
|
||||||
spring.hornetq.embedded.enabled=true
|
|
||||||
spring.hornetq.embedded.queues=accounts
|
|
||||||
|
|
@ -28,11 +28,11 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-hornetq</artifactId>
|
<artifactId>spring-boot-starter-artemis</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hornetq</groupId>
|
<groupId>org.apache.activemq</groupId>
|
||||||
<artifactId>hornetq-jms-server</artifactId>
|
<artifactId>artemis-jms-server</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
spring.hornetq.mode=embedded
|
|
||||||
spring.hornetq.embedded.enabled=true
|
|
||||||
spring.hornetq.embedded.queues=accounts
|
|
||||||
|
|
||||||
logging.level.com.arjuna=INFO
|
logging.level.com.arjuna=INFO
|
||||||
Loading…
Reference in New Issue