diff --git a/src/docbkx/amqp.xml b/src/docbkx/amqp.xml
index b3d19c71..9fde8ffe 100644
--- a/src/docbkx/amqp.xml
+++ b/src/docbkx/amqp.xml
@@ -476,7 +476,7 @@ public class ExampleAmqpConfiguration {
@Bean
public ConnectionFactory rabbitConnectionFactory() {
- SingleConnectionFactory connectionFactory = new SingleConnectionFactory("localhost");
+ CachingConnectionFactory connectionFactory = new CachingConnectionFactory("localhost");
connectionFactory.setUsername("guest");
connectionFactory.setPassword("guest");
return connectionFactory;
diff --git a/src/docbkx/sample-apps.xml b/src/docbkx/sample-apps.xml
index 147d3029..3d12790a 100644
--- a/src/docbkx/sample-apps.xml
+++ b/src/docbkx/sample-apps.xml
@@ -42,15 +42,6 @@
You can read more about that here.
- You will see that the RabbitConfiguration class extends a
- framework-provided class called AbstractRabbitConfiguration. That forces
- it to implement the abstract rabbitTemplate() method while the base
- class itself then creates an 'amqpAdmin' bean. The "rabbitTemplate" bean
- in turn depends upon the bean that is created by the connectionFactory()
- method. There, we are providing the 'username' and 'password' properties
- as well as the 'hostname' constructor argument to an instance of
- SingleConnectionFactory.
-
- The base class also provides a mechanism that will recognize any
- Exchange, Queue, or Binding bean definitions and then declare them on
- the broker. In fact, the "helloWorldQueue" bean that is generated in
- HelloWorldConfiguration is an example simply because it is an instance
- of Queue.
+ The configuration also contains an instance
+ of RabbitAdmin, which by default looks
+ for any beans of type Exchange, Queue, or Binding and then
+ declares them on the broker. In fact, the "helloWorldQueue" bean
+ that is generated in HelloWorldConfiguration is an example
+ simply because it is an instance of Queue.