Switch JMS pooling to pooled-jms
This commit removes support for `activemq-pool` in benefit of `pooled-jms`. While the former is not JMS 2 compliant, the latter is and is independent of the ActiveMQ codebase (so potentially reusable in custom code). Closes gh-13927
This commit is contained in:
@@ -962,10 +962,10 @@ content into your application. Rather, pick only the properties that you need.
|
||||
spring.activemq.packages.trusted= # Comma-separated list of specific packages to trust (when not trusting all packages).
|
||||
spring.activemq.pool.block-if-full=true # Whether to block when a connection is requested and the pool is full. Set it to false to throw a "JMSException" instead.
|
||||
spring.activemq.pool.block-if-full-timeout=-1ms # Blocking period before throwing an exception if the pool is still full.
|
||||
spring.activemq.pool.enabled=false # Whether a PooledConnectionFactory should be created, instead of a regular ConnectionFactory.
|
||||
spring.activemq.pool.enabled=false # Whether a JmsPoolConnectionFactory should be created, instead of a regular ConnectionFactory.
|
||||
spring.activemq.pool.idle-timeout=30s # Connection idle timeout.
|
||||
spring.activemq.pool.max-connections=1 # Maximum number of pooled connections.
|
||||
spring.activemq.pool.maximum-active-session-per-connection=500 # Maximum number of active sessions per connection.
|
||||
spring.activemq.pool.max-sessions-per-connection=500 # Maximum number of pooled sessions per connection in the pool.
|
||||
spring.activemq.pool.time-between-expiration-check=-1ms # Time to sleep between runs of the idle connection eviction thread. When negative, no idle connection eviction thread runs.
|
||||
spring.activemq.pool.use-anonymous-producers=true # Whether to use only one anonymous "MessageProducer" instance. Set it to false to create one "MessageProducer" every time one is required.
|
||||
|
||||
@@ -983,11 +983,11 @@ content into your application. Rather, pick only the properties that you need.
|
||||
spring.artemis.pool.block-if-full=true # Whether to block when a connection is requested and the pool is full. Set it to false to throw a "JMSException" instead.
|
||||
spring.artemis.pool.block-if-full-timeout=-1ms # Blocking period before throwing an exception if the pool is still full.
|
||||
spring.artemis.pool.create-connection-on-startup=true # Whether to create a connection on startup. Can be used to warm up the pool on startup.
|
||||
spring.artemis.pool.enabled=false # Whether a PooledConnectionFactory should be created, instead of a regular ConnectionFactory.
|
||||
spring.artemis.pool.enabled=false # Whether a JmsPoolConnectionFactory should be created, instead of a regular ConnectionFactory.
|
||||
spring.artemis.pool.expiry-timeout=0ms # Connection expiration timeout.
|
||||
spring.artemis.pool.idle-timeout=30s # Connection idle timeout.
|
||||
spring.artemis.pool.max-connections=1 # Maximum number of pooled connections.
|
||||
spring.artemis.pool.maximum-active-session-per-connection=500 # Maximum number of active sessions per connection.
|
||||
spring.artemis.pool.max-sessions-per-connection=500 # Maximum number of pooled sessions per connection in the pool.
|
||||
spring.artemis.pool.reconnect-on-exception=true # Reset the connection when a "JMSException" occurs.
|
||||
spring.artemis.pool.time-between-expiration-check=-1ms # Time to sleep between runs of the idle connection eviction thread. When negative, no idle connection eviction thread runs.
|
||||
spring.artemis.pool.use-anonymous-producers=true # Whether to use only one anonymous "MessageProducer" instance. Set it to false to create one "MessageProducer" every time one is required.
|
||||
|
||||
@@ -5110,8 +5110,8 @@ sensible settings that you can control by external configuration properties in
|
||||
----
|
||||
|
||||
If you'd rather use native pooling, you can do so by adding a dependency to
|
||||
`org.apache.activemq:activemq-jms-pool` and configuring the `PooledConnectionFactory`
|
||||
accordingly, as shown in the following example:
|
||||
`org.messaginghub:pooled-jms` and configuring the `JmsPoolConnectionFactory` accordingly,
|
||||
as shown in the following example:
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
@@ -5119,8 +5119,6 @@ accordingly, as shown in the following example:
|
||||
spring.activemq.pool.max-connections=50
|
||||
----
|
||||
|
||||
WARNING: `PooledConnectionFactory` is not JMS 2.0 compliant
|
||||
|
||||
TIP: See
|
||||
{sc-spring-boot-autoconfigure}/jms/activemq/ActiveMQProperties.{sc-ext}[`ActiveMQProperties`]
|
||||
for more of the supported options. You can also register an arbitrary number of beans
|
||||
@@ -5178,8 +5176,8 @@ sensible settings that you can control by external configuration properties in
|
||||
----
|
||||
|
||||
If you'd rather use native pooling, you can do so by adding a dependency to
|
||||
`org.apache.activemq:activemq-jms-pool` and configuring the `PooledConnectionFactory`
|
||||
accordingly, as shown in the following example:
|
||||
`org.messaginghub:pooled-jms` and configuring the `JmsPoolConnectionFactory` accordingly,
|
||||
as shown in the following example:
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user