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
  • Field Details

    • CONNECTION_FACTORY_BEAN_NAME

      public static final String CONNECTION_FACTORY_BEAN_NAME
      Name of the ActiveMQ Artemis ConnectionFactory bean.
      See Also:
  • Constructor Details

    • ActiveMqArtemisConfiguration

      public ActiveMqArtemisConfiguration()
  • Method Details

    • activeMqArtemisConnectionFactory

      @JMSConnectionFactory("activeMqArtemisConnectionFactory") public javax.jms.ConnectionFactory activeMqArtemisConnectionFactory(ActiveMqArtemisConfigurationProperties config)
      Generates a JMSConnectionFactory bean in the application context.

      The bean is a ActiveMQJMSConnectionFactory configured with properties from ActiveMqArtemisConfigurationProperties.

      Parameters:
      config - config settings for ActiveMQ Artemis
      Returns:
      the ActiveMQJMSConnectionFactory defined by the config.