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
cd45ce91
Commit
cd45ce91
authored
Sep 29, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
323c7493
1bb5dc20
Changes
8
Hide 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 @
cd45ce91
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 {
...
@@ -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 {
...
@@ -31,8 +30,4 @@ class JmsExample implements CommandLineRunner {
latch
.
countDown
()
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 @
cd45ce91
...
@@ -145,7 +145,7 @@ public class SampleIntegrationTests {
...
@@ -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
...
...
spring-boot-samples/spring-boot-sample-jta-atomikos/pom.xml
View file @
cd45ce91
...
@@ -33,11 +33,11 @@
...
@@ -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.
hornet
q
</groupId>
<groupId>
org.
apache.activem
q
</groupId>
<artifactId>
hornetq
-jms-server
</artifactId>
<artifactId>
artemis
-jms-server
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-atomikos/src/main/resources/application.properties
View file @
cd45ce91
spring.hornetq.mode
=
embedded
logging.level.com.atomikos
=
WARN
spring.hornetq.embedded.enabled
=
true
\ No newline at end of file
spring.hornetq.embedded.queues
=
accounts
logging.level.com.atomikos
=
WARN
spring-boot-samples/spring-boot-sample-jta-bitronix/pom.xml
View file @
cd45ce91
...
@@ -33,11 +33,11 @@
...
@@ -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.
hornet
q
</groupId>
<groupId>
org.
apache.activem
q
</groupId>
<artifactId>
hornetq
-jms-server
</artifactId>
<artifactId>
artemis
-jms-server
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-bitronix/src/main/resources/application.properties
View file @
cd45ce91
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 @
cd45ce91
...
@@ -28,11 +28,11 @@
...
@@ -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.
hornet
q
</groupId>
<groupId>
org.
apache.activem
q
</groupId>
<artifactId>
hornetq
-jms-server
</artifactId>
<artifactId>
artemis
-jms-server
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<groupId>
com.h2database
</groupId>
...
...
spring-boot-samples/spring-boot-sample-jta-narayana/src/main/resources/application.properties
View file @
cd45ce91
spring.hornetq.mode
=
embedded
spring.hornetq.embedded.enabled
=
true
spring.hornetq.embedded.queues
=
accounts
logging.level.com.arjuna
=
INFO
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