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
FieldsModifier and TypeFieldDescriptionstatic final StringName of the ActiveMQ ClassicConnectionFactorybean. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jms.ConnectionFactoryGenerates aJMSConnectionFactorybean in the application context.
-
Field Details
-
CONNECTION_FACTORY_BEAN_NAME
Name of the ActiveMQ ClassicConnectionFactorybean.- See Also:
-
-
Constructor Details
-
ActiveMqClassicConfiguration
public ActiveMqClassicConfiguration()
-
-
Method Details
-
activeMqConnectionFactory
@JMSConnectionFactory("activeMqConnectionFactory") public javax.jms.ConnectionFactory activeMqConnectionFactory(ActiveMqClassicConfigurationProperties config) Generates aJMSConnectionFactorybean in the application context.The bean is a
ActiveMQConnectionFactoryconfigured with properties fromActiveMqClassicConfigurationProperties.- Parameters:
config- config settings for ActiveMQ Classic- Returns:
- the
ActiveMQConnectionFactorydefined by theconfig.
-