diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 1c5fc8a6259935..7a5d7964918a05 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -175,6 +175,9 @@ 1.1.1 7.4.4 + + + 2.0.3 @@ -348,6 +351,11 @@ mermaid ${webjar.mermaid.version} + + jakarta.jms + jakarta.jms-api + ${jakarta.jms-api.version} + com.github.davidmoten subethasmtp diff --git a/extensions/jms-spi/deployment/pom.xml b/extensions/jms-spi/deployment/pom.xml new file mode 100644 index 00000000000000..98a1c8c1871937 --- /dev/null +++ b/extensions/jms-spi/deployment/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + + io.quarkus + quarkus-jms-spi-parent + 999-SNAPSHOT + + + quarkus-jms-spi-deployment + Quarkus - JMS - SPI - Deployment + + + + io.quarkus + quarkus-core-deployment + + + jakarta.jms + jakarta.jms-api + + + + diff --git a/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java b/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java new file mode 100644 index 00000000000000..ddc786ef67760e --- /dev/null +++ b/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java @@ -0,0 +1,25 @@ +package io.quarkus.jms.spi.deployment; + +import java.util.function.Function; + +import javax.jms.ConnectionFactory; + +import org.wildfly.common.Assert; + +import io.quarkus.builder.item.SimpleBuildItem; + +/** + * A build item that can be used to wrap ConnectionFactory + */ +public final class ConnectionFactoryWrapperBuildItem extends SimpleBuildItem { + private final Function wrapper; + + public ConnectionFactoryWrapperBuildItem(Function wrapper) { + Assert.checkNotNullParam("wrapper is required", wrapper); + this.wrapper = wrapper; + } + + public Function getWrapper() { + return wrapper; + } +} diff --git a/extensions/jms-spi/pom.xml b/extensions/jms-spi/pom.xml new file mode 100644 index 00000000000000..ed967c17f68145 --- /dev/null +++ b/extensions/jms-spi/pom.xml @@ -0,0 +1,20 @@ + + + + quarkus-extensions-parent + io.quarkus + 999-SNAPSHOT + ../pom.xml + + 4.0.0 + + quarkus-jms-spi-parent + Quarkus - JMS SPI - Parent + pom + + deployment + + + diff --git a/extensions/pom.xml b/extensions/pom.xml index 47d7509ab9f5cf..5de0a914e7d279 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -198,6 +198,9 @@ awt + + jms-spi +