34 changed files with 174 additions and 124 deletions
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
/* |
||||
* Copyright 2012-present the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the License); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0 |
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
|
||||
plugins { |
||||
id "java-library" |
||||
id "org.springframework.boot.auto-configuration" |
||||
id "org.springframework.boot.configuration-properties" |
||||
id "org.springframework.boot.deployed" |
||||
id "org.springframework.boot.optional-dependencies" |
||||
} |
||||
|
||||
description = "Spring Boot ActiveMQ" |
||||
|
||||
dependencies { |
||||
api(project(":spring-boot-project:spring-boot-jms")) |
||||
api("org.apache.activemq:activemq-client") |
||||
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure")) |
||||
optional("jakarta.transaction:jakarta.transaction-api") |
||||
optional("org.apache.activemq:activemq-broker") |
||||
optional("org.messaginghub:pooled-jms") { |
||||
exclude group: "org.apache.geronimo.specs", module: "geronimo-jms_2.0_spec" |
||||
} |
||||
|
||||
testImplementation(project(":spring-boot-project:spring-boot-test")) |
||||
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")) |
||||
|
||||
testRuntimeOnly("ch.qos.logback:logback-classic") |
||||
} |
||||
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryConfiguration.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryConfiguration.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryConfiguration.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryConfiguration.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryConfigurer.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryConfigurer.java
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryConfigurer.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryConfigurer.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryCustomizer.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryCustomizer.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQConnectionFactoryCustomizer.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQConnectionFactoryCustomizer.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQXAConnectionFactoryConfiguration.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQXAConnectionFactoryConfiguration.java
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQXAConnectionFactoryConfiguration.java → spring-boot-project/spring-boot-activemq/src/main/java/org/springframework/boot/activemq/autoconfigure/ActiveMQXAConnectionFactoryConfiguration.java
@ -0,0 +1,94 @@
@@ -0,0 +1,94 @@
|
||||
{ |
||||
"groups": [], |
||||
"properties": [ |
||||
{ |
||||
"name": "spring.activemq.pool.block-if-full", |
||||
"type": "java.lang.Boolean", |
||||
"description": "Whether to block when a connection is requested and the pool is full. Set it to false to throw a \"JMSException\" instead.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": true |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.block-if-full-timeout", |
||||
"type": "java.time.Duration", |
||||
"description": "Blocking period before throwing an exception if the pool is still full.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": "-1ms" |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.create-connection-on-startup", |
||||
"type": "java.lang.Boolean", |
||||
"description": "Whether to create a connection on startup. Can be used to warm up the pool on startup.", |
||||
"defaultValue": true, |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.enabled", |
||||
"type": "java.lang.Boolean", |
||||
"description": "Whether a JmsPoolConnectionFactory should be created, instead of a regular ConnectionFactory.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": false |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.expiry-timeout", |
||||
"type": "java.time.Duration", |
||||
"description": "Connection expiration timeout.", |
||||
"defaultValue": "0ms", |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.idle-timeout", |
||||
"type": "java.time.Duration", |
||||
"description": "Connection idle timeout.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": "30s" |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.max-connections", |
||||
"type": "java.lang.Integer", |
||||
"description": "Maximum number of pooled connections.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": 1 |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.max-sessions-per-connection", |
||||
"type": "java.lang.Integer", |
||||
"description": "Maximum number of pooled sessions per connection in the pool.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": 500 |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.maximum-active-session-per-connection", |
||||
"deprecation": { |
||||
"replacement": "spring.activemq.pool.max-sessions-per-connection" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.reconnect-on-exception", |
||||
"type": "java.lang.Boolean", |
||||
"description": "Reset the connection when a \"JMSException\" occurs.", |
||||
"defaultValue": true, |
||||
"deprecation": { |
||||
"level": "error" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.time-between-expiration-check", |
||||
"type": "java.time.Duration", |
||||
"description": "Time to sleep between runs of the idle connection eviction thread. When negative, no idle connection eviction thread runs.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": "-1ms" |
||||
}, |
||||
{ |
||||
"name": "spring.activemq.pool.use-anonymous-producers", |
||||
"type": "java.lang.Boolean", |
||||
"description": "Whether to use only one anonymous \"MessageProducer\" instance. Set it to false to create one \"MessageProducer\" every time one is required.", |
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties", |
||||
"defaultValue": true |
||||
} |
||||
] |
||||
} |
||||
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
org.springframework.boot.activemq.autoconfigure.ActiveMQAutoConfiguration |
||||
Loading…
Reference in new issue