@Factory
@Requires(property="micronaut.jms.activemq.classic.enabled",
value="true")
public class ActiveMqClassicConfiguration
extends java.lang.Object
JMSConnectionFactory
based on the
properties provided by ActiveMqClassicConfigurationProperties
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECTION_FACTORY_BEAN_NAME
Name of the ActiveMQ Classic
ConnectionFactory bean. |
Constructor and Description |
---|
ActiveMqClassicConfiguration() |
Modifier and Type | Method and Description |
---|---|
javax.jms.ConnectionFactory |
activeMqConnectionFactory(ActiveMqClassicConfigurationProperties config)
Generates a
JMSConnectionFactory bean in the application context. |
public static final java.lang.String CONNECTION_FACTORY_BEAN_NAME
ConnectionFactory
bean.@JMSConnectionFactory(value="activeMqConnectionFactory") public javax.jms.ConnectionFactory activeMqConnectionFactory(ActiveMqClassicConfigurationProperties config)
JMSConnectionFactory
bean in the application context.
The bean is a ActiveMQConnectionFactory
configured with
properties from ActiveMqClassicConfigurationProperties
.
config
- config settings for ActiveMQ ClassicActiveMQConnectionFactory
defined by the config
.