Class ServiceBusJmsContainerConfiguration
java.lang.Object
com.azure.spring.cloud.autoconfigure.jms.ServiceBusJmsContainerConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(org.springframework.jms.annotation.EnableJms.class)
public class ServiceBusJmsContainerConfiguration
extends Object
Abstract autoconfiguration class of ServiceBusJMS for JmsListenerContainerFactory.
-
Constructor Summary
ConstructorDescriptionServiceBusJmsContainerConfiguration
(AzureServiceBusJmsProperties azureServiceBusJMSProperties) Creates a new instance ofServiceBusJmsContainerConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.jms.config.JmsListenerContainerFactory<?>
jmsListenerContainerFactory
(org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer configurer, jakarta.jms.ConnectionFactory connectionFactory) Autoconfigure theJmsListenerContainerFactory
for Service Bus queues.org.springframework.jms.config.JmsListenerContainerFactory<?>
topicJmsListenerContainerFactory
(org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer configurer, jakarta.jms.ConnectionFactory connectionFactory) Autoconfigure theJmsListenerContainerFactory
for Service Bus topics.
-
Constructor Details
-
ServiceBusJmsContainerConfiguration
public ServiceBusJmsContainerConfiguration(AzureServiceBusJmsProperties azureServiceBusJMSProperties) Creates a new instance ofServiceBusJmsContainerConfiguration
.- Parameters:
azureServiceBusJMSProperties
- the Azure ServiceBus JMS properties
-
-
Method Details
-
jmsListenerContainerFactory
@Bean @ConditionalOnMissingBean public org.springframework.jms.config.JmsListenerContainerFactory<?> jmsListenerContainerFactory(org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer configurer, jakarta.jms.ConnectionFactory connectionFactory) Autoconfigure theJmsListenerContainerFactory
for Service Bus queues.- Parameters:
configurer
- the configurer to configure the container factory.connectionFactory
- the connection factory for the container factory.- Returns:
- the jms listener container factory for Service Bus queues.
-
topicJmsListenerContainerFactory
@Bean @ConditionalOnMissingBean(name="topicJmsListenerContainerFactory") public org.springframework.jms.config.JmsListenerContainerFactory<?> topicJmsListenerContainerFactory(org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer configurer, jakarta.jms.ConnectionFactory connectionFactory) Autoconfigure theJmsListenerContainerFactory
for Service Bus topics.- Parameters:
configurer
- the configurer to configure the container factory.connectionFactory
- the connection factory for the container factory.- Returns:
- the jms listener container factory for Service Bus topics.
-