Class ActiveMqClassicConfiguration
java.lang.Object
io.micronaut.jms.activemq.classic.configuration.ActiveMqClassicConfiguration
@Factory
@Requires(property="micronaut.jms.activemq.classic.enabled",
value="true")
public class ActiveMqClassicConfiguration
extends Object
Generates the ActiveMQ Classic
JMSConnectionFactory
based on the
properties provided by ActiveMqClassicConfigurationProperties
.- Since:
- 1.0.0
- Author:
- Elliott Pope
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the ActiveMQ ClassicConnectionFactory
bean. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactory
Generates aJMSConnectionFactory
bean in the application context.
-
Field Details
-
CONNECTION_FACTORY_BEAN_NAME
Name of the ActiveMQ ClassicConnectionFactory
bean.- See Also:
-
-
Constructor Details
-
ActiveMqClassicConfiguration
public ActiveMqClassicConfiguration()
-
-
Method Details
-
activeMqConnectionFactory
@JMSConnectionFactory("activeMqConnectionFactory") public jakarta.jms.ConnectionFactory activeMqConnectionFactory(ActiveMqClassicConfigurationProperties config) Generates aJMSConnectionFactory
bean in the application context.The bean is a
ActiveMQConnectionFactory
configured with properties fromActiveMqClassicConfigurationProperties
.- Parameters:
config
- config settings for ActiveMQ Classic- Returns:
- the
ActiveMQConnectionFactory
defined by theconfig
.
-