[AMQ-9239] jakarta.jms - assembly changes

This commit is contained in:
Matt Pavlovich 2023-04-13 09:27:31 -05:00
parent 90fbd9098b
commit e10d457868
40 changed files with 159 additions and 103 deletions

View File

@ -56,8 +56,8 @@
<artifactId>activemq-jdbc-store</artifactId> <artifactId>activemq-jdbc-store</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.geronimo.specs</groupId> <groupId>jakarta.annotation</groupId>
<artifactId>geronimo-annotation_1.3_spec</artifactId> <artifactId>jakarta.annotation-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.logging.log4j</groupId> <groupId>org.apache.logging.log4j</groupId>

View File

@ -232,24 +232,24 @@
<artifactId>jakarta.jms-api</artifactId> <artifactId>jakarta.jms-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.geronimo.specs</groupId> <groupId>jakarta.resource</groupId>
<artifactId>geronimo-j2ee-connector_1.5_spec</artifactId> <artifactId>jakarta.resource-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.geronimo.specs</groupId> <groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jacc_1.1_spec</artifactId> <artifactId>geronimo-jacc_1.1_spec</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-websocket-api</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.geronimo.specs</groupId> <groupId>jakarta.servlet</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId> <artifactId>jakarta.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.websocket</groupId>
<artifactId>jakarta.websocket-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shiro</groupId> <groupId>org.apache.shiro</groupId>
@ -268,6 +268,10 @@
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId> <artifactId>spring-aop</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId> <artifactId>spring-jms</artifactId>
@ -342,8 +346,8 @@
<artifactId>jcl-over-slf4j</artifactId> <artifactId>jcl-over-slf4j</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.geronimo.specs</groupId> <groupId>jakarta.annotation</groupId>
<artifactId>geronimo-annotation_1.3_spec</artifactId> <artifactId>jakarta.annotation-api</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
@ -357,6 +361,17 @@
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>apache-jstl</artifactId> <artifactId>apache-jstl</artifactId>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp.jstl</groupId>
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>jakarta.servlet.jsp.jstl</artifactId>
<version>3.0.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jasypt</groupId> <groupId>org.jasypt</groupId>
@ -389,11 +404,13 @@
<artifactId>xmlParserAPIs</artifactId> <artifactId>xmlParserAPIs</artifactId>
<version>2.6.2</version> <version>2.6.2</version>
</dependency> </dependency>
<!--
<dependency> <dependency>
<groupId>org.jolokia</groupId> <groupId>org.jolokia</groupId>
<artifactId>jolokia-core</artifactId> <artifactId>jolokia-core</artifactId>
<version>${jolokia-version}</version> <version>${jolokia-version}</version>
</dependency> </dependency>
-->
<dependency> <dependency>
<groupId>com.googlecode.json-simple</groupId> <groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId> <artifactId>json-simple</artifactId>

View File

@ -142,7 +142,7 @@
<include>${pom.groupId}:activemq-jaas</include> <include>${pom.groupId}:activemq-jaas</include>
<include>org.apache.activemq.protobuf:activemq-protobuf</include> <include>org.apache.activemq.protobuf:activemq-protobuf</include>
<include>jakarta.jms:jakarta.jms-api</include> <include>jakarta.jms:jakarta.jms-api</include>
<include>org.apache.geronimo.specs:geronimo-jta_1.1_spec</include> <include>jakarta.transaction:jakarta.transaction-api</include>
<include>${pom.groupId}:activemq-web</include> <include>${pom.groupId}:activemq-web</include>
<include>org.fusesource.hawtbuf:hawtbuf</include> <include>org.fusesource.hawtbuf:hawtbuf</include>
<include>javax.xml.bind:jaxb-api</include> <include>javax.xml.bind:jaxb-api</include>
@ -157,6 +157,7 @@
<fileMode>0644</fileMode> <fileMode>0644</fileMode>
<directoryMode>0755</directoryMode> <directoryMode>0755</directoryMode>
</dependencySet> </dependencySet>
<!-- AMQ-9239 as of 2023-06-05 Camel does not support jakarta.jms*
<dependencySet> <dependencySet>
<outputDirectory>lib/camel</outputDirectory> <outputDirectory>lib/camel</outputDirectory>
<unpack>false</unpack> <unpack>false</unpack>
@ -169,6 +170,7 @@
<fileMode>0644</fileMode> <fileMode>0644</fileMode>
<directoryMode>0755</directoryMode> <directoryMode>0755</directoryMode>
</dependencySet> </dependencySet>
-->
<dependencySet> <dependencySet>
<outputDirectory>lib/optional</outputDirectory> <outputDirectory>lib/optional</outputDirectory>
<unpack>false</unpack> <unpack>false</unpack>
@ -193,7 +195,7 @@
<include>org.apache.logging.log4j:log4j-slf4j2-impl</include> <include>org.apache.logging.log4j:log4j-slf4j2-impl</include>
<include>org.apache.logging.log4j:log4j-api</include> <include>org.apache.logging.log4j:log4j-api</include>
<include>org.apache.logging.log4j:log4j-core</include> <include>org.apache.logging.log4j:log4j-core</include>
<include>org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec</include> <include>jakarta.resource:jakarta.resource-api</include>
<include>org.apache.httpcomponents:httpclient</include> <include>org.apache.httpcomponents:httpclient</include>
<include>org.apache.httpcomponents:httpcore</include> <include>org.apache.httpcomponents:httpcore</include>
<include>org.apache.xbean:xbean-spring</include> <include>org.apache.xbean:xbean-spring</include>
@ -253,18 +255,21 @@
<include>org.eclipse.jetty:jetty-util</include> <include>org.eclipse.jetty:jetty-util</include>
<include>org.eclipse.jetty:jetty-http</include> <include>org.eclipse.jetty:jetty-http</include>
<include>org.eclipse.jetty:jetty-io</include> <include>org.eclipse.jetty:jetty-io</include>
<include>org.eclipse.jetty:jetty-jndi</include>
<include>org.eclipse.jetty:jetty-plus</include> <include>org.eclipse.jetty:jetty-plus</include>
<include>org.eclipse.jetty:jetty-servlet</include> <include>org.eclipse.jetty:jetty-servlet</include>
<include>org.eclipse.jetty:jetty-security</include> <include>org.eclipse.jetty:jetty-security</include>
<include>org.eclipse.jetty:jetty-rewrite</include> <include>org.eclipse.jetty:jetty-rewrite</include>
<include>org.eclipse.jetty:jetty-continuation</include> <include>org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api</include>
<include>org.eclipse.jetty.websocket:websocket-api</include> <include>org.eclipse.jetty.websocket:websocket-core-common</include>
<include>org.eclipse.jetty.websocket:websocket-common</include> <include>org.eclipse.jetty.websocket:websocket-core-server</include>
<include>org.eclipse.jetty.websocket:websocket-server</include> <include>org.eclipse.jetty.websocket:websocket-jetty-api</include>
<include>org.eclipse.jetty.websocket:websocket-jetty-common</include>
<include>org.eclipse.jetty.websocket:websocket-jetty-server</include>
<include>org.eclipse.jetty.websocket:websocket-servlet</include> <include>org.eclipse.jetty.websocket:websocket-servlet</include>
<include>org.eclipse.jetty.orbit:javax.security.auth.message</include> <include>org.eclipse.jetty.orbit:javax.security.auth.message</include>
<include>org.apache.tomcat:tomcat-servlet-api</include> <!-- include>jakarta.servlet:jakarta.servlet-api</include -->
<include>org.apache.tomcat:tomcat-websocket-api</include> <include>jakarta.websocket:jakarta.websocket-api</include>
<!-- JSP support --> <!-- JSP support -->
<!-- Jetty JSP api--> <!-- Jetty JSP api-->
@ -273,12 +278,14 @@
<include>org.mortbay.jasper:apache-jsp</include> <include>org.mortbay.jasper:apache-jsp</include>
<!-- jstl and el api --> <!-- jstl and el api -->
<include>org.eclipse.jetty:apache-jstl</include> <include>org.eclipse.jetty:apache-jstl</include>
<include>org.apache.taglibs:taglibs-standard-spec</include> <include>jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api</include>
<include>org.glassfish.web:jakarta.servlet.jsp.jstl</include>
<!-- include>org.apache.taglibs:taglibs-standard-spec</include -->
<!-- jstl and el impl --> <!-- jstl and el impl -->
<include>org.mortbay.jasper:apache-el</include> <include>org.mortbay.jasper:apache-el</include>
<include>org.apache.taglibs:taglibs-standard-impl</include> <!-- include>org.apache.taglibs:taglibs-standard-impl</include -->
<include>org.apache.geronimo.specs:geronimo-annotation_1.3_spec</include> <include>jakarta.annotation:jakarta.annotation-api</include>
<include>org.ow2.asm:asm</include> <include>org.ow2.asm:asm</include>
<include>org.eclipse.jdt:ecj</include> <include>org.eclipse.jdt:ecj</include>
@ -288,7 +295,7 @@
<include>org.jdom:jdom2</include> <include>org.jdom:jdom2</include>
<!-- REST API --> <!-- REST API -->
<include>org.jolokia:jolokia-core</include> <!-- include>org.jolokia:jolokia-core</include -->
<include>com.googlecode.json-simple:json-simple</include> <include>com.googlecode.json-simple:json-simple</include>
</includes> </includes>
<fileMode>0644</fileMode> <fileMode>0644</fileMode>

View File

@ -43,7 +43,10 @@
</bean> </bean>
<bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> <bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
<property name="constraint" ref="securityConstraint" /> <property name="constraint" ref="securityConstraint" />
<!-- AMQ-9239 TODO: review jetty.xml pathSpec change
<property name="pathSpec" value="/,/api/*,*.jsp,*.html,*.js,*.css,*.png,*.gif,*.ico" /> <property name="pathSpec" value="/,/api/*,*.jsp,*.html,*.js,*.css,*.png,*.gif,*.ico" />
-->
<property name="pathSpec" value="/,/api/*" />
</bean> </bean>
<bean id="adminSecurityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> <bean id="adminSecurityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
<property name="constraint" ref="adminSecurityConstraint" /> <property name="constraint" ref="adminSecurityConstraint" />

View File

@ -31,7 +31,7 @@
<dependency> <dependency>
<groupId>jakarta.jms</groupId> <groupId>jakarta.jms</groupId>
<artifactId>jakarta.jms-api</artifactId> <artifactId>jakarta.jms-api</artifactId>
<version>2.0.3</version> <version>${jakarta-jms-api-version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.qpid</groupId> <groupId>org.apache.qpid</groupId>
@ -46,10 +46,10 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version> <version>${maven-compiler-plugin-version}</version>
<configuration> <configuration>
<source>1.8</source> <source>${source-version}</source>
<target>1.8</target> <target>${target-version}</target>
</configuration> </configuration>
</plugin> </plugin>

View File

@ -17,7 +17,7 @@
package example; package example;
import org.apache.qpid.jms.*; import org.apache.qpid.jms.*;
import javax.jms.*; import jakarta.jms.*;
class Listener { class Listener {

View File

@ -17,7 +17,7 @@
package example; package example;
import org.apache.qpid.jms.*; import org.apache.qpid.jms.*;
import javax.jms.*; import jakarta.jms.*;
class Publisher { class Publisher {

View File

@ -208,8 +208,8 @@
For more details see For more details see
http://activemq.apache.org/enterprise-integration-patterns.html http://activemq.apache.org/enterprise-integration-patterns.html
-->
<import resource="camel.xml"/> <import resource="camel.xml"/>
-->
<!-- <!--

View File

@ -39,7 +39,7 @@
</bean> </bean>
<bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> <bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
<property name="constraint" ref="securityConstraint" /> <property name="constraint" ref="securityConstraint" />
<property name="pathSpec" value="/admin/*,*.jsp" /> <property name="pathSpec" value="/admin,/api/*" />
</bean> </bean>
<bean id="adminSecurityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> <bean id="adminSecurityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
<property name="constraint" ref="adminSecurityConstraint" /> <property name="constraint" ref="adminSecurityConstraint" />
@ -178,4 +178,5 @@
</bean> </bean>
</beans> </beans>

View File

@ -42,10 +42,10 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version> <version>${maven-compiler-plugin-version}</version>
<configuration> <configuration>
<source>1.8</source> <source>${source-version}</source>
<target>1.8</target> <target>${target-version}</target>
</configuration> </configuration>
</plugin> </plugin>

View File

@ -18,7 +18,7 @@ package example.composite.dest;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.composite.dest;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.topic.durable;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.topic.durable;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
/** /**

View File

@ -18,7 +18,7 @@ package example.queue.exclusive;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.queue.exclusive;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.browser;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View File

@ -18,7 +18,7 @@ package example.browser;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.queue.selector;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.queue.selector;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.queue;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.queue;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -17,7 +17,7 @@ package example.tempdest; /**
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -17,7 +17,7 @@ package example.tempdest; /**
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
/** /**

View File

@ -18,7 +18,7 @@ package example.topic;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
/** /**
* @author <a href="http://www.christianposta.com/blog">Christian Posta</a> * @author <a href="http://www.christianposta.com/blog">Christian Posta</a>

View File

@ -18,7 +18,7 @@ package example.topic;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*; import jakarta.jms.*;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
/** /**

View File

@ -19,7 +19,7 @@ package example.transaction;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.command.ActiveMQTopic;
import javax.jms.*; import jakarta.jms.*;
import java.util.Scanner; import java.util.Scanner;
/** /**

View File

@ -19,7 +19,7 @@ package example.wildcard;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.command.ActiveMQTopic;
import javax.jms.*; import jakarta.jms.*;
import java.util.Scanner; import java.util.Scanner;
/** /**

View File

@ -44,7 +44,7 @@
<dependency> <dependency>
<groupId>jakarta.jms</groupId> <groupId>jakarta.jms</groupId>
<artifactId>jakarta.jms-api</artifactId> <artifactId>jakarta.jms-api</artifactId>
<version>2.0.3</version> <version>${jakarta-jms-api-version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.activemq</groupId> <groupId>org.apache.activemq</groupId>
@ -59,15 +59,24 @@
</dependencies> </dependencies>
<build> <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin-version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version> <version>${maven-compiler-plugin-version}</version>
<configuration> <configuration>
<source>1.8</source> <source>${source-version}</source>
<target>1.8</target> <target>${target-version}</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

View File

@ -30,7 +30,7 @@
<dependency> <dependency>
<groupId>jakarta.jms</groupId> <groupId>jakarta.jms</groupId>
<artifactId>jakarta.jms-api</artifactId> <artifactId>jakarta.jms-api</artifactId>
<version>2.0.3</version> <version>${jakarta-jms-api-version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.activemq</groupId> <groupId>org.apache.activemq</groupId>
@ -49,10 +49,10 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version> <version>${maven-compiler-plugin-version}</version>
<configuration> <configuration>
<source>1.8</source> <source>${source-version}</source>
<target>1.8</target> <target>${target-version}</target>
</configuration> </configuration>
</plugin> </plugin>

View File

@ -19,7 +19,7 @@ package example;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.command.ActiveMQTopic;
import javax.jms.*; import jakarta.jms.*;
class Listener { class Listener {

View File

@ -19,7 +19,7 @@ package example;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.command.ActiveMQTopic;
import javax.jms.*; import jakarta.jms.*;
class Publisher { class Publisher {

View File

@ -31,7 +31,7 @@
<dependency> <dependency>
<groupId>jakarta.jms</groupId> <groupId>jakarta.jms</groupId>
<artifactId>jakarta.jms-api</artifactId> <artifactId>jakarta.jms-api</artifactId>
<version>2.0.3</version> <version>3.1.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.hyte.stompjms</groupId> <groupId>io.hyte.stompjms</groupId>
@ -48,8 +48,8 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version> <version>2.1</version>
<configuration> <configuration>
<source>1.8</source> <source>11</source>
<target>1.8</target> <target>11</target>
</configuration> </configuration>
</plugin> </plugin>

View File

@ -16,8 +16,12 @@
*/ */
package example; package example;
<<<<<<< HEAD
import org.fusesource.stomp.jms.*; import org.fusesource.stomp.jms.*;
import javax.jms.*; =======
import io.hyte.stomp.jms.*;
>>>>>>> b76b26305 ([AMQ-9239] jakarta.jms - assembly changes)
import jakarta.jms.*;
class Listener { class Listener {
@ -84,4 +88,4 @@ class Listener {
else else
return defaultValue; return defaultValue;
} }
} }

View File

@ -16,8 +16,12 @@
*/ */
package example; package example;
<<<<<<< HEAD
import org.fusesource.stomp.jms.*; import org.fusesource.stomp.jms.*;
import javax.jms.*; =======
import io.hyte.stomp.jms.*;
>>>>>>> b76b26305 ([AMQ-9239] jakarta.jms - assembly changes)
import jakarta.jms.*;
class Publisher { class Publisher {
@ -76,4 +80,4 @@ class Publisher {
return defaultValue; return defaultValue;
} }
} }

View File

@ -15,10 +15,11 @@
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" <web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
version="3.0"> web-app_5_0.xsd"
version="5.0">
<display-name>Apache ActiveMQ REST API</display-name> <display-name>Apache ActiveMQ REST API</display-name>
@ -36,9 +37,11 @@
--> -->
</servlet> </servlet>
<!-- AMQ-9239 jakarta - jolokia does not support jakarta
<servlet> <servlet>
<servlet-name>jolokia-agent</servlet-name> <servlet-name>jolokia-agent</servlet-name>
<servlet-class>org.jolokia.http.AgentServlet</servlet-class> <servlet-class>org.jolokia.http.AgentServlet</servlet-class>
-->
<!-- Uncomment this if you want jolokia multicast discovery to be enabled <!-- Uncomment this if you want jolokia multicast discovery to be enabled
<init-param> <init-param>
<param-name>discoveryEnabled</param-name> <param-name>discoveryEnabled</param-name>
@ -53,27 +56,33 @@
<param-value>Apache ActiveMQ</param-value> <param-value>Apache ActiveMQ</param-value>
</init-param> </init-param>
--> -->
<!-- AMQ-9239 jakarta - jolokia does not support jakarta
<init-param> <init-param>
<param-name>policyLocation</param-name> <param-name>policyLocation</param-name>
<param-value>${prop:jolokia.conf}</param-value> <param-value>${prop:jolokia.conf}</param-value>
</init-param> </init-param>
-->
<!-- turn off returning exceptions and stacktraces from jolokia --> <!-- turn off returning exceptions and stacktraces from jolokia -->
<!-- AMQ-9239 jakarta - jolokia does not support jakarta
<init-param> <init-param>
<param-name>allowErrorDetails</param-name> <param-name>allowErrorDetails</param-name>
<param-value>false</param-value> <param-value>false</param-value>
</init-param> </init-param>
<load-on-startup>1</load-on-startup> <load-on-startup>1</load-on-startup>
</servlet> </servlet>
-->
<servlet-mapping> <servlet-mapping>
<servlet-name>MessageServlet</servlet-name> <servlet-name>MessageServlet</servlet-name>
<url-pattern>/message/*</url-pattern> <url-pattern>/message/*</url-pattern>
</servlet-mapping> </servlet-mapping>
<!-- AMQ-9239 jakarta - jolokia does not support jakarta
<servlet-mapping> <servlet-mapping>
<servlet-name>jolokia-agent</servlet-name> <servlet-name>jolokia-agent</servlet-name>
<url-pattern>/jolokia/*</url-pattern> <url-pattern>/jolokia/*</url-pattern>
</servlet-mapping> </servlet-mapping>
-->
<session-config> <session-config>
<cookie-config> <cookie-config>

View File

@ -21,10 +21,10 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
import javax.jms.Connection; import jakarta.jms.Connection;
import javax.jms.Destination; import jakarta.jms.Destination;
import javax.jms.JMSException; import jakarta.jms.JMSException;
import javax.jms.Session; import jakarta.jms.Session;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.util.IdGenerator; import org.apache.activemq.util.IdGenerator;

View File

@ -16,14 +16,14 @@
*/ */
package org.apache.activemq.benchmark; package org.apache.activemq.benchmark;
import javax.jms.Destination; import jakarta.jms.Destination;
import javax.jms.JMSException; import jakarta.jms.JMSException;
import javax.jms.Message; import jakarta.jms.Message;
import javax.jms.MessageConsumer; import jakarta.jms.MessageConsumer;
import javax.jms.MessageListener; import jakarta.jms.MessageListener;
import javax.jms.Session; import jakarta.jms.Session;
import javax.jms.TextMessage; import jakarta.jms.TextMessage;
import javax.jms.Topic; import jakarta.jms.Topic;
/** /**
* @author James Strachan * @author James Strachan

View File

@ -21,12 +21,12 @@ import java.io.File;
import java.io.FileReader; import java.io.FileReader;
import java.io.IOException; import java.io.IOException;
import javax.jms.DeliveryMode; import jakarta.jms.DeliveryMode;
import javax.jms.Destination; import jakarta.jms.Destination;
import javax.jms.JMSException; import jakarta.jms.JMSException;
import javax.jms.Message; import jakarta.jms.Message;
import javax.jms.MessageProducer; import jakarta.jms.MessageProducer;
import javax.jms.Session; import jakarta.jms.Session;
/** /**
* @author James Strachan * @author James Strachan

View File

@ -30,7 +30,7 @@ import java.util.Properties;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import javax.jms.Connection; import jakarta.jms.Connection;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
@ -137,7 +137,9 @@ public class BrokerXmlConfigStartTest {
System.setProperty("activemq.conf", "target/conf"); System.setProperty("activemq.conf", "target/conf");
secProps = new Properties(); secProps = new Properties();
secProps.load(new FileInputStream(new File("target/conf/credentials.properties"))); secProps.load(new FileInputStream(new File("target/conf/credentials.properties")));
setEnv("ACTIVEMQ_ENCRYPTION_PASSWORD", "activemq"); // AMQ-9239 - setEnv doesn't work w/ JDK 17
// This is only needed for running in IDE. surefire plugin sets this during mvn builds
// setEnv("ACTIVEMQ_ENCRYPTION_PASSWORD", "activemq");
} }
@After @After