Micronaut JMS Configuration Reference
Every documented configuration property of Micronaut JMS, with types, descriptions, and defaults.
20 properties across 4 sections
Micronaut Jms Activemq Artemis Config Properties
Configuration properties for ActiveMqArtemisConfigurationProperties
| Property | Type | Description |
|---|---|---|
micronaut.jms.activemq.artemis.enabled | boolean | Whether ActiveMQ Artemis is active. |
micronaut.jms.activemq.artemis.connection-string | java.lang.String | The connection string to identify the broker URL, e.g. vm://localhost or tcp://my-activemq-cluster:61616. |
micronaut.jms.activemq.artemis.username | java.lang.String | The username. |
micronaut.jms.activemq.artemis.password | java.lang.String | The password. |
Micronaut Jms Activemq Classic Config Properties
Configuration properties for ActiveMqClassicConfigurationProperties
| Property | Type | Description |
|---|---|---|
micronaut.jms.activemq.classic.enabled | boolean | Whether ActiveMQ Classic is active. |
micronaut.jms.activemq.classic.connection-string | java.lang.String | The connection string to identify the broker URL, e.g. vm://localhost or tcp://my-activemq-cluster:61616. |
micronaut.jms.activemq.classic.username | java.lang.String | The username. |
micronaut.jms.activemq.classic.password | java.lang.String | The password. |
Micronaut Jms Core Config Properties
Configuration properties for JMSConfigurationProperties
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.jms.initial-pool-size | java.lang.Integer | The initial size of the JMSConnectionPool , SessionPool , and MessageProducerPool . | 1 |
micronaut.jms.max-pool-size | java.lang.Integer | The maximum size of the JMSConnectionPool , SessionPool , and MessageProducerPool . | 50 |
Configuration properties for JMSListenerRecoveryConfiguration
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.jms.listener-recovery.enabled | boolean | Whether listeners recreate a session that the JMS provider reports as failed. Defaults to {@code true}. | true |
micronaut.jms.listener-recovery.warn-attempts | int | The number of failed attempts to recreate a session that are logged as warnings. Later attempts are logged as errors, and continue until one succeeds or the listener shuts down. Defaults to 10. | 10 |
micronaut.jms.listener-recovery.initial-delay | java.time.Duration | How long a consumer waits after a failed attempt before the next one. The wait doubles after each attempt, up to {@link #getMaxDelay()}. It must be positive. Defaults to 1 second. | PT1S |
micronaut.jms.listener-recovery.max-delay | java.time.Duration | The longest wait between two attempts, which every attempt waits once the doubling reaches it. It must not be shorter than {@link #getInitialDelay()}. Defaults to 1 minute. | PT1M |
Configuration properties for JMSProducerSessionConfiguration
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.jms.producer-sessions.enabled | boolean | Whether producer methods reuse sessions, on one connection of each connection factory. When disabled, each send takes a connection from the pool and opens a session. Defaults to {@code true}. | true |
micronaut.jms.producer-sessions.max-idle | int | The maximum number of idle sessions kept for each connection factory and session mode. While sends wait for a session, released sessions are kept for them up to {@link #getMaxActive()}; the idle sessions above this number are closed once no send waits. Defaults to 8. | 8 |
micronaut.jms.producer-sessions.max-active | int | The maximum number of sessions of each connection factory that sends use at once, of all session modes. When all of them are borrowed, a send waits up to {@link #getMaxWait()} for one to be released. Defaults to 32. | 32 |
micronaut.jms.producer-sessions.max-wait | java.time.Duration | How long a send waits for a session when {@link #getMaxActive()} sessions are borrowed, after which the send fails. Defaults to 10 seconds. | 10s |
Micronaut Jms Sqs Config Properties
Configuration properties for SqsConfigurationProperties
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.jms.sqs.enabled | boolean | Whether SQS is active. | |
micronaut.jms.sqs.number-of-messages-to-prefetch | java.lang.Integer | Number of messages to prefetch for better receive turnaround times. | 0 |
No properties match this filter.