Merge branch '1.3.x'
This commit is contained in:
@@ -3561,9 +3561,9 @@ TIP: Check {spring-javadoc}/jms/annotation/EnableJms.{dc-ext}[the Javadoc of `@E
|
||||
more details.
|
||||
|
||||
If you need to create more `JmsListenerContainerFactory` instances or if you want to override
|
||||
the default, Spring Boot provides a `JmsListenerContainerFactoryConfigurer` that you can use
|
||||
to initialize a `DefaultJmsListenerContainerFactory` with the same settings as the one that
|
||||
is auto-configured.
|
||||
the default, Spring Boot provides a `DefaultJmsListenerContainerFactoryConfigurer` that you
|
||||
can use to initialize a `DefaultJmsListenerContainerFactory` with the same settings as the one
|
||||
that is auto-configured.
|
||||
|
||||
For instance, the following exposes another factory that uses a specific `MessageConverter`:
|
||||
|
||||
@@ -3574,9 +3574,10 @@ For instance, the following exposes another factory that uses a specific `Messag
|
||||
|
||||
@Bean
|
||||
public DefaultJmsListenerContainerFactory myFactory(
|
||||
JmsListenerContainerFactoryConfigurer configurer) {
|
||||
DefaultJmsListenerContainerFactory factory = configurer
|
||||
.createJmsListenerContainerFactory(connectionFactory());
|
||||
DefaultJmsListenerContainerFactoryConfigurer configurer) {
|
||||
DefaultJmsListenerContainerFactory factory =
|
||||
new DefaultJmsListenerContainerFactory();
|
||||
configurer.configure(factory, connectionFactory());
|
||||
factory.setMessageConverter(myMessageConverter());
|
||||
return factory;
|
||||
}
|
||||
@@ -3695,8 +3696,8 @@ TIP: Check {spring-amqp-javadoc}/rabbit/annotation/EnableRabbit.{dc-ext}[the Jav
|
||||
for more details.
|
||||
|
||||
If you need to create more `RabbitListenerContainerFactory` instances or if you want to override
|
||||
the default, Spring Boot provides a `RabbitListenerContainerFactoryConfigurer` that you can use
|
||||
to initialize a `SimpleRabbitListenerContainerFactory` with the same settings as the one that
|
||||
the default, Spring Boot provides a `SimpleRabbitListenerContainerFactoryConfigurer` that you can
|
||||
use to initialize a `SimpleRabbitListenerContainerFactory` with the same settings as the one that
|
||||
is auto-configured.
|
||||
|
||||
For instance, the following exposes another factory that uses a specific `MessageConverter`:
|
||||
@@ -3708,9 +3709,10 @@ For instance, the following exposes another factory that uses a specific `Messag
|
||||
|
||||
@Bean
|
||||
public SimpleRabbitListenerContainerFactory myFactory(
|
||||
RabbitListenerContainerFactoryConfigurer configurer) {
|
||||
SimpleRabbitListenerContainerFactory factory = configurer
|
||||
.createRabbitListenerContainerFactory(connectionFactory());
|
||||
SimpleRabbitListenerContainerFactoryConfigurer configurer) {
|
||||
SimpleRabbitListenerContainerFactory factory =
|
||||
new SimpleRabbitListenerContainerFactory();
|
||||
configurer.configure(factory, connectionFactory);
|
||||
factory.setMessageConverter(myMessageConverter());
|
||||
return factory;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user