Create spring-boot-artemis module
This commit is contained in:
parent
5884dfcaf7
commit
fa79efed7a
|
@ -44,6 +44,7 @@ include "spring-boot-project:spring-boot-actuator-autoconfigure"
|
|||
include "spring-boot-project:spring-boot-all"
|
||||
include "spring-boot-project:spring-boot-all-integration-tests"
|
||||
include "spring-boot-project:spring-boot-amqp"
|
||||
include "spring-boot-project:spring-boot-artemis"
|
||||
include "spring-boot-project:spring-boot-autoconfigure"
|
||||
include "spring-boot-project:spring-boot-autoconfigure-all"
|
||||
include "spring-boot-project:spring-boot-dependencies"
|
||||
|
|
|
@ -19,6 +19,7 @@ dependencies {
|
|||
|
||||
optional(project(":spring-boot-project:spring-boot-activemq"))
|
||||
optional(project(":spring-boot-project:spring-boot-amqp"))
|
||||
optional(project(":spring-boot-project:spring-boot-artemis"))
|
||||
optional(project(":spring-boot-project:spring-boot-jackson"))
|
||||
optional(project(":spring-boot-project:spring-boot-jetty"))
|
||||
optional(project(":spring-boot-project:spring-boot-jsonb"))
|
||||
|
|
|
@ -28,7 +28,6 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
/**
|
||||
|
@ -37,8 +36,8 @@ import org.springframework.context.annotation.Bean;
|
|||
* @author Stephane Nicoll
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@AutoConfiguration(after = ArtemisAutoConfiguration.class,
|
||||
afterName = "org.springframework.boot.activemq.autoconfigure.ActiveMQAutoConfiguration")
|
||||
@AutoConfiguration(afterName = { "org.springframework.boot.activemq.autoconfigure.ActiveMQAutoConfiguration",
|
||||
"org.springframework.boot.artemis.autoconfigure.ArtemisAutoConfiguration" })
|
||||
@ConditionalOnClass(ConnectionFactory.class)
|
||||
@ConditionalOnBean(ConnectionFactory.class)
|
||||
@ConditionalOnEnabledHealthIndicator("jms")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -21,8 +21,8 @@ import org.junit.jupiter.api.Test;
|
|||
import org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration;
|
||||
import org.springframework.boot.actuate.jms.JmsHealthIndicator;
|
||||
import org.springframework.boot.actuate.ldap.LdapHealthIndicator;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
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 Artemis"
|
||||
|
||||
dependencies {
|
||||
api(project(":spring-boot-project:spring-boot-jms"))
|
||||
api("org.apache.activemq:artemis-jakarta-client") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
|
||||
optional("org.apache.activemq:artemis-jakarta-server") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
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"))
|
||||
testImplementation("org.assertj:assertj-core")
|
||||
testImplementation("org.awaitility:awaitility")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||
testImplementation("org.mockito:mockito-core")
|
||||
testImplementation("org.mockito:mockito-junit-jupiter")
|
||||
|
||||
testRuntimeOnly("ch.qos.logback:logback-classic")
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import jakarta.jms.ConnectionFactory;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import org.apache.activemq.artemis.core.config.Configuration;
|
||||
import org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ;
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetails;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import jakarta.jms.ConnectionFactory;
|
||||
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import java.io.File;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import org.apache.activemq.artemis.api.core.QueueConfiguration;
|
||||
import org.apache.activemq.artemis.api.core.RoutingType;
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
/**
|
||||
* Define the mode in which Artemis can operate.
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import org.apache.activemq.artemis.spi.core.naming.BindingRegistry;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import jakarta.jms.ConnectionFactory;
|
||||
import jakarta.transaction.TransactionManager;
|
|
@ -19,4 +19,4 @@
|
|||
*
|
||||
* @author Eddú Meléndez
|
||||
*/
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
"groups": [],
|
||||
"properties": [
|
||||
{
|
||||
"name": "spring.artemis.broker-url",
|
||||
"defaultValue": "tcp://localhost:61616"
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.host",
|
||||
"type": "java.lang.String",
|
||||
"deprecation": {
|
||||
"replacement": "spring.artemis.broker-url",
|
||||
"level": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.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.artemis.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.artemis.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.artemis.pool.idle-timeout",
|
||||
"type": "java.time.Duration",
|
||||
"description": "Connection idle timeout.",
|
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties",
|
||||
"defaultValue": "30s"
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.pool.max-connections",
|
||||
"type": "java.lang.Integer",
|
||||
"description": "Maximum number of pooled connections.",
|
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties",
|
||||
"defaultValue": 1
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.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.artemis.pool.maximum-active-session-per-connection",
|
||||
"deprecation": {
|
||||
"replacement": "spring.artemis.pool.max-sessions-per-connection"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.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.artemis.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
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.port",
|
||||
"type": "java.lang.Integer",
|
||||
"deprecation": {
|
||||
"replacement": "spring.artemis.broker-url",
|
||||
"level": "error"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
org.springframework.boot.artemis.autoconfigure.ArtemisAutoConfiguration
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
@ -46,8 +46,8 @@ import org.junit.jupiter.api.condition.JRE;
|
|||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.messaginghub.pooled.jms.JmsPoolConnectionFactory;
|
||||
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisAutoConfiguration.PropertiesArtemisConnectionDetails;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration.PropertiesArtemisConnectionDetails;
|
||||
import org.springframework.boot.jms.autoconfigure.JmsAutoConfiguration;
|
||||
import org.springframework.boot.test.context.FilteredClassLoader;
|
||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.jms.artemis;
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
|
@ -43,6 +43,7 @@ dependencies {
|
|||
dockerTestImplementation("org.testcontainers:testcontainers")
|
||||
|
||||
optional(project(":spring-boot-project:spring-boot-activemq"))
|
||||
optional(project(":spring-boot-project:spring-boot-artemis"))
|
||||
optional(project(":spring-boot-project:spring-boot-jackson"))
|
||||
optional(project(":spring-boot-project:spring-boot-jsonb"))
|
||||
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
|
||||
|
@ -84,12 +85,7 @@ dependencies {
|
|||
optional("jakarta.ws.rs:jakarta.ws.rs-api")
|
||||
optional("javax.cache:cache-api")
|
||||
optional("javax.money:money-api")
|
||||
optional("org.apache.activemq:artemis-jakarta-client") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
optional("org.apache.activemq:artemis-jakarta-server") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
|
||||
optional("org.apache.commons:commons-dbcp2") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
|
|
|
@ -16,13 +16,12 @@
|
|||
|
||||
package org.springframework.boot.autoconfigure.http;
|
||||
|
||||
import org.apache.activemq.artemis.spi.core.protocol.MessageConverter;
|
||||
|
||||
import org.springframework.boot.autoconfigure.preinitialize.BackgroundPreinitializer;
|
||||
import org.springframework.http.converter.HttpMessageConverter;
|
||||
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
|
||||
|
||||
/**
|
||||
* {@link BackgroundPreinitializer} Spring's {@link MessageConverter} implementations.
|
||||
* {@link BackgroundPreinitializer} Spring's {@link HttpMessageConverter} implementations.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
|
|
|
@ -21,7 +21,6 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizationAutoConfiguration;
|
||||
|
@ -36,10 +35,10 @@ import org.springframework.context.annotation.Import;
|
|||
* @since 1.2.0
|
||||
*/
|
||||
@AutoConfiguration(
|
||||
before = { XADataSourceAutoConfiguration.class, ArtemisAutoConfiguration.class,
|
||||
HibernateJpaAutoConfiguration.class, TransactionAutoConfiguration.class,
|
||||
TransactionManagerCustomizationAutoConfiguration.class },
|
||||
beforeName = "org.springframework.boot.activemq.autoconfigure.ActiveMQAutoConfiguration")
|
||||
before = { XADataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class,
|
||||
TransactionAutoConfiguration.class, TransactionManagerCustomizationAutoConfiguration.class },
|
||||
beforeName = { "org.springframework.boot.activemq.autoconfigure.ActiveMQAutoConfiguration",
|
||||
"org.springframework.boot.artemis.autoconfigure.ArtemisAutoConfiguration" })
|
||||
@ConditionalOnClass(jakarta.transaction.Transaction.class)
|
||||
@ConditionalOnBooleanProperty(name = "spring.jta.enabled", matchIfMissing = true)
|
||||
@Import(JndiJtaConfiguration.class)
|
||||
|
|
|
@ -13,89 +13,7 @@
|
|||
"description": "Whether subclass-based (CGLIB) proxies are to be created (true), as opposed to standard Java interface-based proxies (false).",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.broker-url",
|
||||
"defaultValue": "tcp://localhost:61616"
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.host",
|
||||
"type": "java.lang.String",
|
||||
"deprecation": {
|
||||
"replacement": "spring.artemis.broker-url",
|
||||
"level": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.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.artemis.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.artemis.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.artemis.pool.idle-timeout",
|
||||
"type": "java.time.Duration",
|
||||
"description": "Connection idle timeout.",
|
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties",
|
||||
"defaultValue": "30s"
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.pool.max-connections",
|
||||
"type": "java.lang.Integer",
|
||||
"description": "Maximum number of pooled connections.",
|
||||
"sourceType": "org.springframework.boot.jms.autoconfigure.JmsPoolConnectionFactoryProperties",
|
||||
"defaultValue": 1
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.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.artemis.pool.maximum-active-session-per-connection",
|
||||
"deprecation": {
|
||||
"replacement": "spring.artemis.pool.max-sessions-per-connection"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.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.artemis.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
|
||||
},
|
||||
{
|
||||
"name": "spring.artemis.port",
|
||||
"type": "java.lang.Integer",
|
||||
"deprecation": {
|
||||
"replacement": "spring.artemis.broker-url",
|
||||
"level": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
{
|
||||
"name": "spring.batch.initialize-schema",
|
||||
"type": "org.springframework.boot.sql.init.DatabaseInitializationMode",
|
||||
"deprecation": {
|
||||
|
|
|
@ -68,7 +68,6 @@ org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration
|
|||
org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration
|
||||
org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
|
||||
org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
|
||||
org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration
|
||||
org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration
|
||||
org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration
|
||||
org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration
|
||||
|
|
|
@ -2016,6 +2016,7 @@ bom {
|
|||
"spring-boot-actuator",
|
||||
"spring-boot-actuator-autoconfigure",
|
||||
"spring-boot-amqp",
|
||||
"spring-boot-artemis",
|
||||
"spring-boot-autoconfigure",
|
||||
"spring-boot-autoconfigure-processor",
|
||||
"spring-boot-buildpack-platform",
|
||||
|
|
|
@ -32,6 +32,7 @@ dependencies {
|
|||
|
||||
optional(project(":spring-boot-project:spring-boot-activemq"))
|
||||
optional(project(":spring-boot-project:spring-boot-amqp"))
|
||||
optional(project(":spring-boot-project:spring-boot-artemis"))
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure-all"))
|
||||
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
||||
optional("com.hazelcast:hazelcast")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -16,8 +16,8 @@
|
|||
|
||||
package org.springframework.boot.docker.compose.service.connection.activemq;
|
||||
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisConnectionDetails;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisMode;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisConnectionDetails;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisMode;
|
||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
|
||||
import org.springframework.boot.testsupport.container.TestImage;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -16,8 +16,8 @@
|
|||
|
||||
package org.springframework.boot.docker.compose.service.connection.activemq;
|
||||
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisConnectionDetails;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisMode;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisConnectionDetails;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisMode;
|
||||
import org.springframework.boot.docker.compose.core.RunningService;
|
||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
|
||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
|
||||
|
|
|
@ -56,6 +56,7 @@ dependencies {
|
|||
autoConfiguration(project(path: ":spring-boot-project:spring-boot-activemq", configuration: "autoConfigurationMetadata"))
|
||||
autoConfiguration(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "autoConfigurationMetadata"))
|
||||
autoConfiguration(project(path: ":spring-boot-project:spring-boot-amqp", configuration: "autoConfigurationMetadata"))
|
||||
autoConfiguration(project(path: ":spring-boot-project:spring-boot-artemis", configuration: "autoConfigurationMetadata"))
|
||||
autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "autoConfigurationMetadata"))
|
||||
autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "autoConfigurationMetadata"))
|
||||
autoConfiguration(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "autoConfigurationMetadata"))
|
||||
|
@ -74,6 +75,7 @@ dependencies {
|
|||
configurationProperties(project(path: ":spring-boot-project:spring-boot-actuator", configuration: "configurationPropertiesMetadata"))
|
||||
configurationProperties(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
||||
configurationProperties(project(path: ":spring-boot-project:spring-boot-amqp", configuration: "configurationPropertiesMetadata"))
|
||||
configurationProperties(project(path: ":spring-boot-project:spring-boot-artemis", configuration: "configurationPropertiesMetadata"))
|
||||
configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "configurationPropertiesMetadata"))
|
||||
configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "configurationPropertiesMetadata"))
|
||||
configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata"))
|
||||
|
|
|
@ -6,8 +6,5 @@ description = "Starter for JMS messaging using Apache Artemis"
|
|||
|
||||
dependencies {
|
||||
api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
|
||||
api(project(":spring-boot-project:spring-boot-jms"))
|
||||
api("org.apache.activemq:artemis-jakarta-client") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
api(project(":spring-boot-project:spring-boot-artemis"))
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@ dependencies {
|
|||
dockerTestImplementation("io.rest-assured:rest-assured") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
dockerTestImplementation("org.apache.activemq:artemis-jakarta-client") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
dockerTestImplementation("org.apache.cassandra:java-driver-core") {
|
||||
exclude group: "org.slf4j", module: "jcl-over-slf4j"
|
||||
}
|
||||
|
@ -59,6 +56,7 @@ dependencies {
|
|||
|
||||
optional(project(":spring-boot-project:spring-boot-activemq"))
|
||||
optional(project(":spring-boot-project:spring-boot-amqp"))
|
||||
optional(project(":spring-boot-project:spring-boot-artemis"))
|
||||
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
||||
optional("org.springframework:spring-test")
|
||||
optional("org.springframework.data:spring-data-mongodb")
|
||||
|
|
|
@ -27,8 +27,8 @@ import org.testcontainers.junit.jupiter.Container;
|
|||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration;
|
||||
import org.springframework.boot.jms.autoconfigure.JmsAutoConfiguration;
|
||||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
||||
import org.springframework.boot.testsupport.container.TestImage;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
|
@ -18,8 +18,8 @@ package org.springframework.boot.testcontainers.service.connection.activemq;
|
|||
|
||||
import org.testcontainers.activemq.ArtemisContainer;
|
||||
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisConnectionDetails;
|
||||
import org.springframework.boot.autoconfigure.jms.artemis.ArtemisMode;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisConnectionDetails;
|
||||
import org.springframework.boot.artemis.autoconfigure.ArtemisMode;
|
||||
import org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory;
|
||||
import org.springframework.boot.testcontainers.service.connection.ContainerConnectionSource;
|
||||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
||||
|
|
Loading…
Reference in New Issue