Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
1bb5dc20
Commit
1bb5dc20
authored
Sep 29, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update samples to use Artemis in place of HornetQ
Closes gh-7057
parent
bfd62aba
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
30 deletions
+14
-30
jms.groovy
spring-boot-cli/samples/jms.groovy
+3
-8
SampleIntegrationTests.java
.../org/springframework/boot/cli/SampleIntegrationTests.java
+1
-1
pom.xml
spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml
+3
-3
application.properties
...le-jta-atomikos/src/main/resources/application.properties
+1
-5
pom.xml
spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml
+3
-3
application.properties
...le-jta-bitronix/src/main/resources/application.properties
+0
-3
pom.xml
spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml
+3
-3
application.properties
...le-jta-narayana/src/main/resources/application.properties
+0
-4
No files found.
spring-boot-cli/samples/jms.groovy
View file @
1bb5dc20
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
)
}
}
spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java
View file @
1bb5dc20
...
...
@@ -145,7 +145,7 @@ public class SampleIntegrationTests {
@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
...
...
spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml
View file @
1bb5dc20
...
...
@@ -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.
hornet
q
</groupId>
<artifactId>
hornetq
-jms-server
</artifactId>
<groupId>
org.
apache.activem
q
</groupId>
<artifactId>
artemis
-jms-server
</artifactId>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-atomikos/src/main/resources/application.properties
View file @
1bb5dc20
spring.hornetq.mode
=
embedded
spring.hornetq.embedded.enabled
=
true
spring.hornetq.embedded.queues
=
accounts
logging.level.com.atomikos
=
WARN
\ No newline at end of file
spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml
View file @
1bb5dc20
...
...
@@ -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.
hornet
q
</groupId>
<artifactId>
hornetq
-jms-server
</artifactId>
<groupId>
org.
apache.activem
q
</groupId>
<artifactId>
artemis
-jms-server
</artifactId>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-bitronix/src/main/resources/application.properties
View file @
1bb5dc20
spring.hornetq.mode
=
embedded
spring.hornetq.embedded.enabled
=
true
spring.hornetq.embedded.queues
=
accounts
spring-boot-samples/spring-boot-sample-jta-narayana/pom.xml
View file @
1bb5dc20
...
...
@@ -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.
hornet
q
</groupId>
<artifactId>
hornetq
-jms-server
</artifactId>
<groupId>
org.
apache.activem
q
</groupId>
<artifactId>
artemis
-jms-server
</artifactId>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-narayana/src/main/resources/application.properties
View file @
1bb5dc20
spring.hornetq.mode
=
embedded
spring.hornetq.embedded.enabled
=
true
spring.hornetq.embedded.queues
=
accounts
logging.level.com.arjuna
=
INFO
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment