Primary-ized the simpleMessageListenerContainerCustomizer bean creation
This commit is contained in:
parent
0b3cf27f13
commit
fde6db8572
@ -15,6 +15,7 @@ import org.springframework.boot.autoconfigure.amqp.RabbitTemplateCustomizer;
|
|||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.context.annotation.Primary;
|
||||||
|
|
||||||
import static com.knecon.fforesight.tenantcommons.ForwardTenantInterceptor.TENANT_HEADER_NAME;
|
import static com.knecon.fforesight.tenantcommons.ForwardTenantInterceptor.TENANT_HEADER_NAME;
|
||||||
|
|
||||||
@ -30,6 +31,7 @@ public class MultiTenancyMessagingConfiguration {
|
|||||||
* us to define as many container customization points as needed.
|
* us to define as many container customization points as needed.
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
|
@Primary
|
||||||
public ContainerCustomizer<SimpleMessageListenerContainer> simpleMessageListenerContainerCustomizer(
|
public ContainerCustomizer<SimpleMessageListenerContainer> simpleMessageListenerContainerCustomizer(
|
||||||
ObjectProvider<SimpleMessageListenerContainerCustomizer> customizers) {
|
ObjectProvider<SimpleMessageListenerContainerCustomizer> customizers) {
|
||||||
return container -> customizers.orderedStream().forEach((customizer) -> customizer.customize(container));
|
return container -> customizers.orderedStream().forEach((customizer) -> customizer.customize(container));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user