Class ActiveMqArtemisConfiguration
java.lang.Object
io.micronaut.jms.activemq.artemis.configuration.ActiveMqArtemisConfiguration
@Factory
@Requires(property="micronaut.jms.activemq.artemis.enabled",
value="true")
public class ActiveMqArtemisConfiguration
extends Object
Generates the ActiveMQ Artemis
JMSConnectionFactory based on the
properties provided by ActiveMqArtemisConfigurationProperties.- Since:
- 1.0.0
- Author:
- Burt Beckwith
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the ActiveMQ ArtemisConnectionFactorybean. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactoryGenerates aJMSConnectionFactorybean in the application context.
-
Field Details
-
CONNECTION_FACTORY_BEAN_NAME
Name of the ActiveMQ ArtemisConnectionFactorybean.- See Also:
-
-
Constructor Details
-
ActiveMqArtemisConfiguration
public ActiveMqArtemisConfiguration()
-
-
Method Details
-
activeMqArtemisConnectionFactory
@JMSConnectionFactory("activeMqArtemisConnectionFactory") public jakarta.jms.ConnectionFactory activeMqArtemisConnectionFactory(ActiveMqArtemisConfigurationProperties config) Generates aJMSConnectionFactorybean in the application context.The bean is a
ActiveMQJMSConnectionFactoryconfigured with properties fromActiveMqArtemisConfigurationProperties.- Parameters:
config- config settings for ActiveMQ Artemis- Returns:
- the
ActiveMQJMSConnectionFactorydefined by theconfig.
-