mirror of https://github.com/apache/activemq.git
[AMQ-9239] jakarta.jms - activemq-unit-tests changes
This commit is contained in:
parent
febcd0b485
commit
65267a9a15
|
@ -94,13 +94,13 @@
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.geronimo.specs</groupId>
|
<groupId>jakarta.transaction</groupId>
|
||||||
<artifactId>geronimo-jta_1.1_spec</artifactId>
|
<artifactId>jakarta.transaction-api</artifactId>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</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>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -239,6 +239,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Joram JMS conformance tests -->
|
<!-- Joram JMS conformance tests -->
|
||||||
|
<!-- AMQ-9239 FIXME: port to jakarta -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.activemq.tooling</groupId>
|
<groupId>org.apache.activemq.tooling</groupId>
|
||||||
<artifactId>activemq-joram-jms-tests</artifactId>
|
<artifactId>activemq-joram-jms-tests</artifactId>
|
||||||
|
|
|
@ -25,9 +25,9 @@ import java.net.ServerSocket;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
|
|
||||||
import javax.jms.ExceptionListener;
|
import jakarta.jms.ExceptionListener;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.net.ServerSocketFactory;
|
import javax.net.ServerSocketFactory;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerRegistry;
|
import org.apache.activemq.broker.BrokerRegistry;
|
||||||
|
|
|
@ -171,7 +171,7 @@ public class ActiveMQSslConnectionFactoryTest extends CombinationTestSupport {
|
||||||
try {
|
try {
|
||||||
connection = (ActiveMQConnection)cf.createConnection();
|
connection = (ActiveMQConnection)cf.createConnection();
|
||||||
}
|
}
|
||||||
catch (javax.jms.JMSException ignore) {
|
catch (jakarta.jms.JMSException ignore) {
|
||||||
//Make sure it's an UnrecoverableKeyException
|
//Make sure it's an UnrecoverableKeyException
|
||||||
assertTrue(getRootCause(ignore) instanceof UnrecoverableKeyException);
|
assertTrue(getRootCause(ignore) instanceof UnrecoverableKeyException);
|
||||||
// Expected exception
|
// Expected exception
|
||||||
|
@ -217,7 +217,7 @@ public class ActiveMQSslConnectionFactoryTest extends CombinationTestSupport {
|
||||||
try {
|
try {
|
||||||
connection = (ActiveMQConnection)cf.createConnection();
|
connection = (ActiveMQConnection)cf.createConnection();
|
||||||
}
|
}
|
||||||
catch (javax.jms.JMSException ignore) {
|
catch (jakarta.jms.JMSException ignore) {
|
||||||
//Make sure it's an UnrecoverableKeyException
|
//Make sure it's an UnrecoverableKeyException
|
||||||
assertTrue(getRootCause(ignore) instanceof UnrecoverableKeyException);
|
assertTrue(getRootCause(ignore) instanceof UnrecoverableKeyException);
|
||||||
// Expected exception
|
// Expected exception
|
||||||
|
@ -244,7 +244,7 @@ public class ActiveMQSslConnectionFactoryTest extends CombinationTestSupport {
|
||||||
try {
|
try {
|
||||||
connection = (ActiveMQConnection)cf.createConnection();
|
connection = (ActiveMQConnection)cf.createConnection();
|
||||||
}
|
}
|
||||||
catch (javax.jms.JMSException ignore) {
|
catch (jakarta.jms.JMSException ignore) {
|
||||||
//Make sure it's an UnrecoverableKeyException and not NullPointerException
|
//Make sure it's an UnrecoverableKeyException and not NullPointerException
|
||||||
assertTrue(getRootCause(ignore) instanceof UnrecoverableKeyException);
|
assertTrue(getRootCause(ignore) instanceof UnrecoverableKeyException);
|
||||||
// Expected exception
|
// Expected exception
|
||||||
|
@ -269,7 +269,7 @@ public class ActiveMQSslConnectionFactoryTest extends CombinationTestSupport {
|
||||||
try {
|
try {
|
||||||
connection = (ActiveMQConnection)cf.createConnection();
|
connection = (ActiveMQConnection)cf.createConnection();
|
||||||
}
|
}
|
||||||
catch (javax.jms.JMSException ignore) {
|
catch (jakarta.jms.JMSException ignore) {
|
||||||
// Expected exception
|
// Expected exception
|
||||||
LOG.info("Expected SSLHandshakeException [" + ignore + "]");
|
LOG.info("Expected SSLHandshakeException [" + ignore + "]");
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,17 +23,17 @@ import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.XAConnection;
|
import jakarta.jms.XAConnection;
|
||||||
import javax.jms.XAConnectionFactory;
|
import jakarta.jms.XAConnectionFactory;
|
||||||
import javax.jms.XAQueueConnection;
|
import jakarta.jms.XAQueueConnection;
|
||||||
import javax.jms.XASession;
|
import jakarta.jms.XASession;
|
||||||
import javax.jms.XATopicConnection;
|
import jakarta.jms.XATopicConnection;
|
||||||
import javax.transaction.xa.XAException;
|
import javax.transaction.xa.XAException;
|
||||||
import javax.transaction.xa.XAResource;
|
import javax.transaction.xa.XAResource;
|
||||||
import javax.transaction.xa.Xid;
|
import javax.transaction.xa.Xid;
|
||||||
|
@ -446,17 +446,17 @@ public class ActiveMQXAConnectionFactoryTest extends CombinationTestSupport {
|
||||||
try {
|
try {
|
||||||
session.commit();
|
session.commit();
|
||||||
fail("expect exception after close");
|
fail("expect exception after close");
|
||||||
} catch (javax.jms.IllegalStateException expected) {}
|
} catch (jakarta.jms.IllegalStateException expected) {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
session.rollback();
|
session.rollback();
|
||||||
fail("expect exception after close");
|
fail("expect exception after close");
|
||||||
} catch (javax.jms.IllegalStateException expected) {}
|
} catch (jakarta.jms.IllegalStateException expected) {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
session.getTransacted();
|
session.getTransacted();
|
||||||
fail("expect exception after close");
|
fail("expect exception after close");
|
||||||
} catch (javax.jms.IllegalStateException expected) {}
|
} catch (jakarta.jms.IllegalStateException expected) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testProducerFailAfterRollbackOnly() throws Exception {
|
public void testProducerFailAfterRollbackOnly() throws Exception {
|
||||||
|
|
|
@ -25,12 +25,12 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.XASession;
|
import jakarta.jms.XASession;
|
||||||
import javax.transaction.xa.XAException;
|
import javax.transaction.xa.XAException;
|
||||||
import javax.transaction.xa.XAResource;
|
import javax.transaction.xa.XAResource;
|
||||||
import javax.transaction.xa.Xid;
|
import javax.transaction.xa.Xid;
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
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 javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
import org.apache.activemq.broker.BrokerRegistry;
|
import org.apache.activemq.broker.BrokerRegistry;
|
||||||
import org.apache.activemq.transport.stomp.Stomp;
|
import org.apache.activemq.transport.stomp.Stomp;
|
||||||
import org.apache.activemq.transport.stomp.StompConnection;
|
import org.apache.activemq.transport.stomp.StompConnection;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import java.net.URISyntaxException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public class ConnectionCloseMultipleTimesConcurrentTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
public void testCloseMultipleTimes() throws Exception {
|
public void testCloseMultipleTimes() throws Exception {
|
||||||
connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ public class ConnectionCloseMultipleTimesTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
public void testCloseMultipleTimes() throws JMSException {
|
public void testCloseMultipleTimes() throws JMSException {
|
||||||
connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||||
|
|
|
@ -19,13 +19,13 @@ package org.apache.activemq;
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
@ -63,7 +63,7 @@ public class ConsumerReceiveWithTimeoutTest {
|
||||||
* Test to check if consumer thread wakes up inside a receive(timeout) after
|
* Test to check if consumer thread wakes up inside a receive(timeout) after
|
||||||
* a message is dispatched to the consumer
|
* a message is dispatched to the consumer
|
||||||
*
|
*
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
@Test(timeout = 30000)
|
@Test(timeout = 30000)
|
||||||
public void testConsumerReceiveBeforeMessageDispatched() throws JMSException {
|
public void testConsumerReceiveBeforeMessageDispatched() throws JMSException {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A base class for a test case which creates an embedded broker and uses a connection and session
|
* A base class for a test case which creates an embedded broker and uses a connection and session
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.command.ActiveMQDestination;
|
import org.apache.activemq.command.ActiveMQDestination;
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
||||||
|
|
|
@ -19,13 +19,13 @@ package org.apache.activemq;
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.command.ActiveMQQueue;
|
import org.apache.activemq.command.ActiveMQQueue;
|
||||||
|
|
|
@ -24,18 +24,18 @@ import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.LinkedBlockingQueue;
|
import java.util.concurrent.LinkedBlockingQueue;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionConsumer;
|
import jakarta.jms.ConnectionConsumer;
|
||||||
import javax.jms.ExceptionListener;
|
import jakarta.jms.ExceptionListener;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.ServerSession;
|
import jakarta.jms.ServerSession;
|
||||||
import javax.jms.ServerSessionPool;
|
import jakarta.jms.ServerSessionPool;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
||||||
import org.apache.activemq.broker.region.policy.PolicyMap;
|
import org.apache.activemq.broker.region.policy.PolicyMap;
|
||||||
|
|
|
@ -27,17 +27,17 @@ import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.IllegalStateException;
|
import jakarta.jms.IllegalStateException;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
import javax.management.ObjectName;
|
import javax.management.ObjectName;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
import org.apache.activemq.command.ActiveMQQueue;
|
import org.apache.activemq.command.ActiveMQQueue;
|
||||||
|
|
|
@ -16,14 +16,14 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -21,19 +21,19 @@ import java.util.Enumeration;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MapMessage;
|
import jakarta.jms.MapMessage;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageEOFException;
|
import jakarta.jms.MessageEOFException;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.ObjectMessage;
|
import jakarta.jms.ObjectMessage;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.StreamMessage;
|
import jakarta.jms.StreamMessage;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
|
||||||
|
|
|
@ -18,14 +18,14 @@ package org.apache.activemq;
|
||||||
|
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.QueueBrowser;
|
import jakarta.jms.QueueBrowser;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -50,7 +50,7 @@ public class JmsAutoAckListenerTest extends TestSupport implements MessageListen
|
||||||
/**
|
/**
|
||||||
* Tests if acknowleged messages are being consumed.
|
* Tests if acknowleged messages are being consumed.
|
||||||
*
|
*
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
public void testAckedMessageAreConsumed() throws Exception {
|
public void testAckedMessageAreConsumed() throws Exception {
|
||||||
connection.start();
|
connection.start();
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -50,7 +50,7 @@ public class JmsAutoAckTest extends TestSupport {
|
||||||
/**
|
/**
|
||||||
* Tests if acknowleged messages are being consumed.
|
* Tests if acknowleged messages are being consumed.
|
||||||
*
|
*
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
public void testAckedMessageAreConsumed() throws JMSException {
|
public void testAckedMessageAreConsumed() throws JMSException {
|
||||||
connection.start();
|
connection.start();
|
||||||
|
|
|
@ -25,16 +25,16 @@ import java.util.concurrent.Semaphore;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -51,7 +51,7 @@ public class JmsClientAckListenerTest extends TestSupport implements MessageList
|
||||||
/**
|
/**
|
||||||
* Tests if acknowleged messages are being consumed.
|
* Tests if acknowleged messages are being consumed.
|
||||||
*
|
*
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
public void testAckedMessageAreConsumed() throws Exception {
|
public void testAckedMessageAreConsumed() throws Exception {
|
||||||
connection.start();
|
connection.start();
|
||||||
|
@ -83,7 +83,7 @@ public class JmsClientAckListenerTest extends TestSupport implements MessageList
|
||||||
* Tests if unacknowleged messages are being redelivered when the consumer
|
* Tests if unacknowleged messages are being redelivered when the consumer
|
||||||
* connects again.
|
* connects again.
|
||||||
*
|
*
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
public void testUnAckedMessageAreNotConsumedOnSessionClose() throws Exception {
|
public void testUnAckedMessageAreNotConsumedOnSessionClose() throws Exception {
|
||||||
connection.start();
|
connection.start();
|
||||||
|
|
|
@ -19,13 +19,13 @@ package org.apache.activemq;
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
|
@ -22,14 +22,14 @@ import java.util.concurrent.SynchronousQueue;
|
||||||
import java.util.concurrent.ThreadPoolExecutor;
|
import java.util.concurrent.ThreadPoolExecutor;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,16 +24,16 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
|
@ -21,13 +21,13 @@ import static org.junit.Assert.assertTrue;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
|
|
||||||
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
||||||
|
|
||||||
|
|
|
@ -16,14 +16,14 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
|
|
||||||
import org.apache.activemq.test.JmsResourceProvider;
|
import org.apache.activemq.test.JmsResourceProvider;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
|
|
||||||
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,13 @@ package org.apache.activemq;
|
||||||
|
|
||||||
import static org.junit.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.IllegalStateException;
|
import jakarta.jms.IllegalStateException;
|
||||||
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 org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
|
|
@ -24,13 +24,13 @@ import static org.junit.Assert.assertTrue;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.IllegalStateException;
|
import jakarta.jms.IllegalStateException;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
|
|
@ -30,18 +30,18 @@ import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.TimeoutException;
|
import java.util.concurrent.TimeoutException;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.QueueBrowser;
|
import jakarta.jms.QueueBrowser;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.advisory.ConsumerEvent;
|
import org.apache.activemq.advisory.ConsumerEvent;
|
||||||
import org.apache.activemq.advisory.ConsumerEventSource;
|
import org.apache.activemq.advisory.ConsumerEventSource;
|
||||||
|
|
|
@ -26,16 +26,16 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.TopicSubscriber;
|
import jakarta.jms.TopicSubscriber;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerFactory;
|
import org.apache.activemq.broker.BrokerFactory;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
|
@ -199,7 +199,7 @@ public class JmsMultipleClientsTestSupport {
|
||||||
conn.start();
|
conn.start();
|
||||||
|
|
||||||
Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||||
final TopicSubscriber consumer = sess.createDurableSubscriber((javax.jms.Topic)dest, name);
|
final TopicSubscriber consumer = sess.createDurableSubscriber((jakarta.jms.Topic)dest, name);
|
||||||
|
|
||||||
return consumer;
|
return consumer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,14 +22,14 @@ import java.net.URI;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.QueueBrowser;
|
import jakarta.jms.QueueBrowser;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.TransportConnector;
|
import org.apache.activemq.broker.TransportConnector;
|
||||||
|
|
|
@ -20,12 +20,12 @@ import java.util.ArrayList;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.QueueBrowser;
|
import jakarta.jms.QueueBrowser;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.management.ObjectName;
|
import javax.management.ObjectName;
|
||||||
import javax.management.openmbean.CompositeData;
|
import javax.management.openmbean.CompositeData;
|
||||||
import javax.management.openmbean.TabularData;
|
import javax.management.openmbean.TabularData;
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerRegistry;
|
import org.apache.activemq.broker.BrokerRegistry;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.*;
|
import jakarta.jms.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -58,7 +58,7 @@ public class JmsQueueSelectorTest extends JmsTopicSelectorTest {
|
||||||
// now we, should only receive 1 message, not two
|
// now we, should only receive 1 message, not two
|
||||||
int remaining = 2;
|
int remaining = 2;
|
||||||
|
|
||||||
javax.jms.Message recievedMsg = null;
|
jakarta.jms.Message recievedMsg = null;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
recievedMsg = consumer.receive(1000);
|
recievedMsg = consumer.receive(1000);
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
||||||
|
|
||||||
|
|
|
@ -16,14 +16,14 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.command.ActiveMQDestination;
|
import org.apache.activemq.command.ActiveMQDestination;
|
||||||
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
||||||
|
|
|
@ -17,17 +17,17 @@
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
|
@ -21,14 +21,14 @@ import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
|
|
@ -23,15 +23,15 @@ import java.util.Date;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -189,7 +189,7 @@ public class JmsSendReceiveTestSupport extends TestSupport implements MessageLis
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
*
|
*
|
||||||
* @see javax.jms.MessageListener#onMessage(javax.jms.Message)
|
* @see jakarta.jms.MessageListener#onMessage(jakarta.jms.Message)
|
||||||
*/
|
*/
|
||||||
public synchronized void onMessage(Message message) {
|
public synchronized void onMessage(Message message) {
|
||||||
consumeMessage(message, messages);
|
consumeMessage(message, messages);
|
||||||
|
|
|
@ -20,15 +20,15 @@ import java.util.Date;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerRegistry;
|
import org.apache.activemq.broker.BrokerRegistry;
|
||||||
import org.apache.activemq.broker.region.DestinationStatistics;
|
import org.apache.activemq.broker.region.DestinationStatistics;
|
||||||
|
|
|
@ -18,14 +18,14 @@ package org.apache.activemq;
|
||||||
|
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
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.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -19,16 +19,16 @@ package org.apache.activemq;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
import org.apache.activemq.command.ActiveMQQueue;
|
import org.apache.activemq.command.ActiveMQQueue;
|
||||||
|
|
|
@ -26,18 +26,18 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.InvalidDestinationException;
|
import jakarta.jms.InvalidDestinationException;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TemporaryQueue;
|
import jakarta.jms.TemporaryQueue;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
|
|
@ -25,13 +25,13 @@ import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerFactory;
|
import org.apache.activemq.broker.BrokerFactory;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
||||||
|
|
||||||
|
|
|
@ -16,15 +16,15 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
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.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -19,17 +19,17 @@ package org.apache.activemq;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
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.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TemporaryQueue;
|
import jakarta.jms.TemporaryQueue;
|
||||||
import javax.jms.TemporaryTopic;
|
import jakarta.jms.TemporaryTopic;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.test.TestSupport;
|
import org.apache.activemq.test.TestSupport;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
|
@ -17,16 +17,16 @@
|
||||||
|
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
import javax.jms.TopicSession;
|
import jakarta.jms.TopicSession;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @version
|
* @version
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,14 +16,14 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import org.apache.activemq.command.ActiveMQDestination;
|
import org.apache.activemq.command.ActiveMQDestination;
|
||||||
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
import org.apache.activemq.test.JmsTopicSendReceiveTest;
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,17 @@ package org.apache.activemq;
|
||||||
|
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.command.ActiveMQMessage;
|
import org.apache.activemq.command.ActiveMQMessage;
|
||||||
import org.apache.activemq.command.ActiveMQQueue;
|
import org.apache.activemq.command.ActiveMQQueue;
|
||||||
|
|
|
@ -22,16 +22,16 @@ import java.net.URISyntaxException;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
import org.apache.activemq.broker.BrokerFactory;
|
import org.apache.activemq.broker.BrokerFactory;
|
||||||
|
|
|
@ -29,15 +29,15 @@ import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.advisory.AdvisorySupport;
|
import org.apache.activemq.advisory.AdvisorySupport;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
|
|
|
@ -26,17 +26,17 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.command.ActiveMQDestination;
|
import org.apache.activemq.command.ActiveMQDestination;
|
||||||
import org.apache.activemq.command.ActiveMQMessage;
|
import org.apache.activemq.command.ActiveMQMessage;
|
||||||
|
|
|
@ -17,15 +17,15 @@
|
||||||
|
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.MapMessage;
|
import jakarta.jms.MapMessage;
|
||||||
import javax.jms.ObjectMessage;
|
import jakarta.jms.ObjectMessage;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.StreamMessage;
|
import jakarta.jms.StreamMessage;
|
||||||
import javax.jms.TemporaryQueue;
|
import jakarta.jms.TemporaryQueue;
|
||||||
import javax.jms.TemporaryTopic;
|
import jakarta.jms.TemporaryTopic;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
import org.apache.activemq.command.ActiveMQBytesMessage;
|
import org.apache.activemq.command.ActiveMQBytesMessage;
|
||||||
|
|
|
@ -19,18 +19,18 @@ package org.apache.activemq;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionConsumer;
|
import jakarta.jms.ConnectionConsumer;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.ServerSession;
|
import jakarta.jms.ServerSession;
|
||||||
import javax.jms.ServerSessionPool;
|
import jakarta.jms.ServerSessionPool;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
||||||
|
|
|
@ -18,10 +18,10 @@ package org.apache.activemq;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerRegistry;
|
import org.apache.activemq.broker.BrokerRegistry;
|
||||||
import org.apache.activemq.broker.region.RegionBroker;
|
import org.apache.activemq.broker.region.RegionBroker;
|
||||||
|
@ -71,13 +71,13 @@ public class OptimizedAckTest extends TestSupport {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
for (int i = 0; i < 6; i++) {
|
for (int i = 0; i < 6; i++) {
|
||||||
javax.jms.Message msg = consumer.receive(4000);
|
jakarta.jms.Message msg = consumer.receive(4000);
|
||||||
assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
assertEquals("all prefetch is still in flight: " + i, 10, regionBroker.getDestinationStatistics().getInflight().getCount());
|
assertEquals("all prefetch is still in flight: " + i, 10, regionBroker.getDestinationStatistics().getInflight().getCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 6; i < 10; i++) {
|
for (int i = 6; i < 10; i++) {
|
||||||
javax.jms.Message msg = consumer.receive(4000);
|
jakarta.jms.Message msg = consumer.receive(4000);
|
||||||
assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
|
|
||||||
assertTrue("most are acked but 3 remain", Wait.waitFor(new Wait.Condition() {
|
assertTrue("most are acked but 3 remain", Wait.waitFor(new Wait.Condition() {
|
||||||
|
@ -111,14 +111,14 @@ public class OptimizedAckTest extends TestSupport {
|
||||||
|
|
||||||
for (int i = 0; i < 6; i++) {
|
for (int i = 0; i < 6; i++) {
|
||||||
Thread.sleep(400);
|
Thread.sleep(400);
|
||||||
javax.jms.Message msg = consumer.receive(4000);
|
jakarta.jms.Message msg = consumer.receive(4000);
|
||||||
assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
assertEquals("all prefetch is still in flight: " + i, 10, regionBroker.getDestinationStatistics().getInflight().getCount());
|
assertEquals("all prefetch is still in flight: " + i, 10, regionBroker.getDestinationStatistics().getInflight().getCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 6; i < 10; i++) {
|
for (int i = 6; i < 10; i++) {
|
||||||
Thread.sleep(400);
|
Thread.sleep(400);
|
||||||
javax.jms.Message msg = consumer.receive(4000);
|
jakarta.jms.Message msg = consumer.receive(4000);
|
||||||
assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
|
|
||||||
assertTrue("most are acked but 3 remain", Wait.waitFor(new Wait.Condition() {
|
assertTrue("most are acked but 3 remain", Wait.waitFor(new Wait.Condition() {
|
||||||
|
@ -153,13 +153,13 @@ public class OptimizedAckTest extends TestSupport {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
for (int i = 0; i < 6; i++) {
|
for (int i = 0; i < 6; i++) {
|
||||||
javax.jms.Message msg = consumer.receive(4000);
|
jakarta.jms.Message msg = consumer.receive(4000);
|
||||||
assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
assertEquals("all prefetch is still in flight: " + i, 10, regionBroker.getDestinationStatistics().getInflight().getCount());
|
assertEquals("all prefetch is still in flight: " + i, 10, regionBroker.getDestinationStatistics().getInflight().getCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 6; i < 10; i++) {
|
for (int i = 6; i < 10; i++) {
|
||||||
javax.jms.Message msg = consumer.receive(4000);
|
jakarta.jms.Message msg = consumer.receive(4000);
|
||||||
assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
assertTrue("most are acked but 3 remain", Wait.waitFor(new Wait.Condition() {
|
assertTrue("most are acked but 3 remain", Wait.waitFor(new Wait.Condition() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -22,13 +22,13 @@ import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
|
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.TransportConnector;
|
import org.apache.activemq.broker.TransportConnector;
|
||||||
|
|
|
@ -19,14 +19,14 @@ package org.apache.activemq;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.ExceptionListener;
|
import jakarta.jms.ExceptionListener;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.ResourceAllocationException;
|
import jakarta.jms.ResourceAllocationException;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
import org.apache.activemq.broker.region.policy.PolicyEntry;
|
||||||
|
|
|
@ -22,14 +22,14 @@ import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.TransportConnector;
|
import org.apache.activemq.broker.TransportConnector;
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.InvalidClientIDException;
|
import jakarta.jms.InvalidClientIDException;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.logging.log4j.Level;
|
||||||
|
|
|
@ -22,15 +22,15 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.ServerSession;
|
import jakarta.jms.ServerSession;
|
||||||
import javax.jms.ServerSessionPool;
|
import jakarta.jms.ServerSessionPool;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
|
||||||
import org.apache.activemq.broker.region.policy.RedeliveryPolicyMap;
|
import org.apache.activemq.broker.region.policy.RedeliveryPolicyMap;
|
||||||
|
|
|
@ -22,14 +22,14 @@ import static org.junit.Assert.fail;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
import javax.management.ObjectName;
|
import javax.management.ObjectName;
|
||||||
|
|
||||||
import org.apache.activemq.advisory.DestinationSource;
|
import org.apache.activemq.advisory.DestinationSource;
|
||||||
|
|
|
@ -44,7 +44,7 @@ public abstract class SpringTestSupport extends TestCase {
|
||||||
@Override
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
if (context != null) {
|
if (context != null) {
|
||||||
context.destroy();
|
context.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,11 @@ import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
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.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
import javax.management.MalformedObjectNameException;
|
import javax.management.MalformedObjectNameException;
|
||||||
import javax.management.ObjectName;
|
import javax.management.ObjectName;
|
||||||
|
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
import org.apache.activemq.broker.BrokerPlugin;
|
import org.apache.activemq.broker.BrokerPlugin;
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.JMSException;
|
import jakarta.jms.JMSException;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.TransportConnector;
|
import org.apache.activemq.broker.TransportConnector;
|
||||||
|
@ -84,7 +84,7 @@ public class TopicSubscriptionCountBeforeFullTest extends TestSupport {
|
||||||
/**
|
/**
|
||||||
* Tests that countBeforeFull is 0 if prefetch is filled
|
* Tests that countBeforeFull is 0 if prefetch is filled
|
||||||
*
|
*
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testCountBeforeFullPrefetchFilled() throws JMSException {
|
public void testCountBeforeFullPrefetchFilled() throws JMSException {
|
||||||
|
@ -96,7 +96,7 @@ public class TopicSubscriptionCountBeforeFullTest extends TestSupport {
|
||||||
* Tests that countBeforeFull is a positive number when no messages have been sent
|
* Tests that countBeforeFull is a positive number when no messages have been sent
|
||||||
* and prefetch is greater than 0
|
* and prefetch is greater than 0
|
||||||
*
|
*
|
||||||
* @throws javax.jms.JMSException
|
* @throws jakarta.jms.JMSException
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testCountBeforeFullNotNull() throws JMSException {
|
public void testCountBeforeFullNotNull() throws JMSException {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import static org.junit.Assert.fail;
|
||||||
|
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import javax.jms.TransactionRolledBackException;
|
import jakarta.jms.TransactionRolledBackException;
|
||||||
|
|
||||||
import org.apache.activemq.transaction.Synchronization;
|
import org.apache.activemq.transaction.Synchronization;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
|
|
@ -26,15 +26,15 @@ import org.apache.activemq.command.XATransactionId;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
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.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.XAConnection;
|
import jakarta.jms.XAConnection;
|
||||||
import javax.jms.XASession;
|
import jakarta.jms.XASession;
|
||||||
import javax.transaction.xa.XAResource;
|
import javax.transaction.xa.XAResource;
|
||||||
import javax.transaction.xa.Xid;
|
import javax.transaction.xa.Xid;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
|
@ -136,7 +136,7 @@ public class XAConsumerTest extends TestCase {
|
||||||
xaSession.close();
|
xaSession.close();
|
||||||
|
|
||||||
MessageConsumer messageConsumer1 = session.createConsumer(destination);
|
MessageConsumer messageConsumer1 = session.createConsumer(destination);
|
||||||
javax.jms.Message message = messageConsumer1.receive(5000);
|
jakarta.jms.Message message = messageConsumer1.receive(5000);
|
||||||
|
|
||||||
assertNotNull("Got message", message);
|
assertNotNull("Got message", message);
|
||||||
LOG.info("Got message on new session", message);
|
LOG.info("Got message on new session", message);
|
||||||
|
@ -226,7 +226,7 @@ public class XAConsumerTest extends TestCase {
|
||||||
Xid xidReceiveOk = createXid();
|
Xid xidReceiveOk = createXid();
|
||||||
xaResource.start(xidReceiveOk, 0);
|
xaResource.start(xidReceiveOk, 0);
|
||||||
|
|
||||||
javax.jms.Message message = messageConsumerTwo.receive(10000);
|
jakarta.jms.Message message = messageConsumerTwo.receive(10000);
|
||||||
|
|
||||||
assertNotNull("Got message", message);
|
assertNotNull("Got message", message);
|
||||||
LOG.info("Got message on new session", message);
|
LOG.info("Got message on new session", message);
|
||||||
|
|
|
@ -16,15 +16,15 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq;
|
package org.apache.activemq;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.region.Subscription;
|
import org.apache.activemq.broker.region.Subscription;
|
||||||
|
|
|
@ -23,17 +23,17 @@ import static org.junit.Assert.assertNull;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TemporaryQueue;
|
import jakarta.jms.TemporaryQueue;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
|
|
|
@ -26,18 +26,18 @@ import java.util.Collection;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import javax.jms.BytesMessage;
|
import jakarta.jms.BytesMessage;
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.ConnectionFactory;
|
import jakarta.jms.ConnectionFactory;
|
||||||
import javax.jms.Destination;
|
import jakarta.jms.Destination;
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import jakarta.jms.Queue;
|
||||||
import javax.jms.QueueBrowser;
|
import jakarta.jms.QueueBrowser;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.Topic;
|
import jakarta.jms.Topic;
|
||||||
import org.apache.activemq.ActiveMQConnection;
|
import org.apache.activemq.ActiveMQConnection;
|
||||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||||
import org.apache.activemq.ActiveMQPrefetchPolicy;
|
import org.apache.activemq.ActiveMQPrefetchPolicy;
|
||||||
|
|
|
@ -20,13 +20,13 @@ import java.util.concurrent.ArrayBlockingQueue;
|
||||||
import java.util.concurrent.BlockingQueue;
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
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.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 org.apache.activemq.EmbeddedBrokerTestSupport;
|
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
|
@ -20,9 +20,9 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.TextMessage;
|
import jakarta.jms.TextMessage;
|
||||||
|
|
||||||
import org.apache.activemq.ActiveMQConnection;
|
import org.apache.activemq.ActiveMQConnection;
|
||||||
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
||||||
|
|
|
@ -20,11 +20,11 @@ import java.util.concurrent.ArrayBlockingQueue;
|
||||||
import java.util.concurrent.BlockingQueue;
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
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.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
|
@ -20,14 +20,14 @@ import java.util.concurrent.ArrayBlockingQueue;
|
||||||
import java.util.concurrent.BlockingQueue;
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
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.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.Topic;
|
import jakarta.jms.Topic;
|
||||||
|
|
||||||
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
||||||
import org.apache.activemq.broker.region.RegionBroker;
|
import org.apache.activemq.broker.region.RegionBroker;
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.advisory;
|
package org.apache.activemq.advisory;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TemporaryQueue;
|
import jakarta.jms.TemporaryQueue;
|
||||||
import javax.jms.TemporaryTopic;
|
import jakarta.jms.TemporaryTopic;
|
||||||
|
|
||||||
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
||||||
import org.apache.activemq.broker.region.Destination;
|
import org.apache.activemq.broker.region.Destination;
|
||||||
|
|
|
@ -18,15 +18,15 @@ package org.apache.activemq.advisory;
|
||||||
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
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.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageListener;
|
import jakarta.jms.MessageListener;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
import javax.jms.TemporaryQueue;
|
import jakarta.jms.TemporaryQueue;
|
||||||
|
|
||||||
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
import org.apache.activemq.EmbeddedBrokerTestSupport;
|
||||||
import org.apache.activemq.broker.region.RegionBroker;
|
import org.apache.activemq.broker.region.RegionBroker;
|
||||||
|
|
|
@ -21,11 +21,11 @@ import java.io.File;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import org.apache.activemq.ActiveMQSession;
|
import org.apache.activemq.ActiveMQSession;
|
||||||
import org.apache.activemq.BlobMessage;
|
import org.apache.activemq.BlobMessage;
|
||||||
|
|
|
@ -25,8 +25,8 @@ import org.apache.derby.jdbc.EmbeddedDataSource;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import javax.jms.Connection;
|
import jakarta.jms.Connection;
|
||||||
import javax.jms.*;
|
import jakarta.jms.*;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -18,10 +18,10 @@ package org.apache.activemq.broker;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.Message;
|
import jakarta.jms.Message;
|
||||||
import javax.jms.MessageConsumer;
|
import jakarta.jms.MessageConsumer;
|
||||||
import javax.jms.MessageProducer;
|
import jakarta.jms.MessageProducer;
|
||||||
import javax.jms.Session;
|
import jakarta.jms.Session;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
import org.apache.activemq.ActiveMQConnection;
|
import org.apache.activemq.ActiveMQConnection;
|
||||||
|
|
|
@ -22,6 +22,7 @@ import org.apache.activemq.network.NetworkConnector;
|
||||||
import org.apache.activemq.store.PersistenceAdapter;
|
import org.apache.activemq.store.PersistenceAdapter;
|
||||||
import org.apache.activemq.util.LargeFile;
|
import org.apache.activemq.util.LargeFile;
|
||||||
import org.apache.activemq.util.StoreUtil;
|
import org.apache.activemq.util.StoreUtil;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.mockito.MockedStatic;
|
import org.mockito.MockedStatic;
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
@ -91,6 +92,7 @@ public class BrokerServiceTest extends TestCase {
|
||||||
assertEquals( 1024L * 1024 * 1024 * 100, service.getSystemUsage().getStoreUsage().getLimit() );
|
assertEquals( 1024L * 1024 * 1024 * 100, service.getSystemUsage().getStoreUsage().getLimit() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** // AMQ-9239 FIXME: byte-buddy module opens
|
||||||
@Test
|
@Test
|
||||||
public void testLargeFileSystem() throws Exception {
|
public void testLargeFileSystem() throws Exception {
|
||||||
BrokerService service = new BrokerService();
|
BrokerService service = new BrokerService();
|
||||||
|
@ -129,4 +131,5 @@ public class BrokerServiceTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.jms.DeliveryMode;
|
import jakarta.jms.DeliveryMode;
|
||||||
import javax.jms.MessageNotWriteableException;
|
import jakarta.jms.MessageNotWriteableException;
|
||||||
|
|
||||||
import org.apache.activemq.CombinationTestSupport;
|
import org.apache.activemq.CombinationTestSupport;
|
||||||
import org.apache.activemq.broker.region.RegionBroker;
|
import org.apache.activemq.broker.region.RegionBroker;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue