From e885dab7528656eaacadd99b5e0fbdada981e5e3 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 7 Jul 2015 15:17:03 -0700 Subject: [PATCH] Polish --- .../src/main/asciidoc/spring-boot-features.adoc | 16 +++++++++------- .../src/main/java/sample/amqp/Sender.java | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index fbde7645199..bf5492e7efa 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -2939,6 +2939,8 @@ The Advanced Message Queuing Protocol (AMQP) is a platform-neutral, wire-level p for message-oriented middleware. The Spring AMQP project applies core Spring concepts to the development of AMQP-based messaging solutions. + + [[boot-features-rabbitmq]] ==== RabbitMQ support RabbitMQ is a lightweight, reliable, scalable and portable message broker based on the @@ -2956,13 +2958,14 @@ RabbitMQ configuration is controlled by external configuration properties in spring.rabbitmq.password=secret ---- -See -{sc-spring-boot-autoconfigure}/amqp/RabbitProperties.{sc-ext}[`RabbitProperties`] +See {sc-spring-boot-autoconfigure}/amqp/RabbitProperties.{sc-ext}[`RabbitProperties`] for more of the supported options. TIP: Check http://spring.io/blog/2010/06/14/understanding-amqp-the-protocol-used-by-rabbitmq/[Understanding AMQP, the protocol used by RabbitMQ] for more details. + + [[boot-features-using-amqp-sending]] ==== Sending a message Spring's `AmqpTemplate` and `AmqpAdmin` are auto-configured and you can autowire them @@ -2999,16 +3002,15 @@ Any `org.springframework.amqp.core.Queue` that is defined as a bean will be auto used to declare a corresponding queue on the RabbitMQ instance if necessary. + [[boot-features-using-amqp-receiving]] ==== Receiving a message - -When the Rabbit infrastructure is present, any bean can be annotated with `@RabbitListener` -to create a listener endpoint. If no `RabbitListenerContainerFactory` has been defined, a -default one is configured automatically. +When the Rabbit infrastructure is present, any bean can be annotated with +`@RabbitListener` to create a listener endpoint. If no `RabbitListenerContainerFactory` +has been defined, a default one is configured automatically. The following component creates a listener endpoint on the `someQueue` queue: - [source,java,indent=0] ---- @Component diff --git a/spring-boot-samples/spring-boot-sample-amqp/src/main/java/sample/amqp/Sender.java b/spring-boot-samples/spring-boot-sample-amqp/src/main/java/sample/amqp/Sender.java index 60310f161fb..60b3c2a40ce 100644 --- a/spring-boot-samples/spring-boot-sample-amqp/src/main/java/sample/amqp/Sender.java +++ b/spring-boot-samples/spring-boot-sample-amqp/src/main/java/sample/amqp/Sender.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.