5,731 questions
-1
votes
1
answer
191
views
Spring boot 3 + ActiveMQ + XA-Transactions + Durable Subscription to JMS Topic dows not work properly
Currently, I can't get XA-Transactions AND Durable Subscription working at the same time. A Demo Projekt is here: https://github.com/proxora/Spring-boot-3-ActiveMQ-XA-Transactions-Durable-Subscription-...
-1
votes
1
answer
55
views
Getting null messages from consumer using Apache.NMS API
We are using the Apache.NMS API with the OpenWire client implementation to consume messages from ActiveMQ Classic. We are getting intermittent issues in production in which messages are sitting in the ...
0
votes
1
answer
184
views
Converting JMS ConnectionFactory to ActiveMQ ConnectionFactory - expected and returned instances are both correct type but fails
I'm replacing activemq-all 5.18.6 with activemq-broker and activemq-client. I've found a side effect in my Java servlets that javax.jms.ConnectionFactory has to be replaced in the servlet XML and the ...
0
votes
1
answer
48
views
Migrating scheduled messages from ActiveMQ Classic to Artemis
We use extensive message scheduling in ActiveMQ Classic and are now looking to migrate to Artemis.
We attempted to use the ActiveMQ KahaDB Export Tool. However, it appears to only migrate messages ...
0
votes
1
answer
58
views
Load multiple domains in ActiveMQ with jaasAuthenticationPlugin
I'm using ActiveMQ Classic and I load users dynamically via a service that updates the users.properties file in my ActiveMQ installation. I use the org.apache.activemq.jaas.PropertiesLoginModule with ...
0
votes
1
answer
65
views
Forwarding messages from an ActiveMQ Classic broker to an ActiveMQ Artemis broker
We are trying to get an ActiveMQ Classic broker to forward its messages to an ActiveMQ Artemis broker.
The same queues exist on both sides.
This is the configuration on the ActiveMQ Classic side:
<...
0
votes
1
answer
109
views
How to properly signal message redelivery in ActiveMQ Artemis using Qpid Proton Python?
Thanks for helping!!! I'm new to Artemis, but got really surprised by it's potencial!
I'm working with ActiveMQ Artemis and a Python client built with Qpid Proton (version 0.39.0). I'm trying to ...
0
votes
0
answers
45
views
Apache Activemq classic scheduled send seems to be bugged with Spring Boot JMS
Unless I'm misreading the apache activeMQ docs, it appears that the use of AMQ_SCHEDULED_DELAY, AMQ_SCHEDULED_PERIOD, and AMQ_SCHEDULED_REPEAT is bugged when they are used together when sending ...
0
votes
0
answers
72
views
How to disable embedded ActiveMQ Classic in Apache TomEE 9.x?
When starting TomEE 9.x the embedded ActiveMQ Classic is also started. In catalina.log I see the following entries:
INFORMATION [ActiveMQFactory start and checkpoint] org.apache.activemq.broker....
0
votes
1
answer
190
views
Upgraded ActiveMQ Classic to 5.18.6, log4j.properties not being processed
I am upgrading ActiveMQ Classic (specifically activemq-all-version.jar) from 5.16.0 to 5.18.6. The output through Log4J 2.17 (specifically log4j-1.2-api-2.17.1.jar and related) has changed format.
...
-1
votes
1
answer
55
views
Active MQ / Camel - setting the durable client ID
I am using a CachingConnectionFactory to set up the activeMQ context for camel; and then camel itself for connecting to active MQ.
When I run my application, it throws the following error:
...
0
votes
1
answer
99
views
Slow consumer using selectors on ActiveMQ Classic
We have an ActiveMQ Classic broker on the default configuration (no specific destination policy configured, and with default KahaDB storage).
Many producers and consumers use the same queue for ...
0
votes
2
answers
145
views
Installed ActiveMQ Classic 6.1.4 from source via Maven, where is the installation directory?
I am new to Maven and Java with minimal experience with ActiveMQ Classic. I had originally done an installation from binary snapshot, that went just fine. The documentation I've found for ...
0
votes
1
answer
61
views
Send message to ActiveMQ Classic via Rest API with properties from Oracle
I can send a message from Oracle UTL_HTTP to ActiveMQ Classic using Rest API, but how can I add some properties to my message ?
myMessage := 'some text ....';
req := UTL_HTTP.BEGIN_REQUEST(lc_baseurl, ...
-3
votes
1
answer
94
views
Activemq unable to send JMS message due to NoClassDefFoundError
I am having problems with my activemq application. After starting it if I send a dummy JMS message to queue it throws below error:
org.springframework.web.util.NestedServletException: Handler ...
0
votes
0
answers
32
views
Why would a queue fail to delete?
Running ActiveMQ Classic 6.0.1 embedded in a Spring Boot app. The app creates queues dynamically and publishes messages to them (via Spring's JmsTemplate); a companion app reads messages from those ...
0
votes
0
answers
198
views
How to setup ActiveMQ broker for multiple Testcontainers
I am trying to setup testcontainers with ActiveMQ broker.
Here's my setup, this is the base test class, that other tests inherit from:
@SpringBootTest
@ActiveProfiles("test")
abstract class ...
0
votes
1
answer
50
views
How to prevent TransactionRolledBackException in ActiveMQ
We have a consumer (C# application) that subscribes to a queue of ActiveMQ Classic. We are using AcknowledgementMode.Transactional to create the session.
Connection URI:
activemq:failover://(tcp://...
0
votes
1
answer
58
views
ActiveMQ different encoding per connection
I'm new to ActiveMQ. I'm trying to run an embedded broker with multiple connectors. I envision each connector having its own encoding (ie a connector that handles POJOs (ObjectMessage), a different ...
0
votes
1
answer
54
views
Not showing up activmq admin page
I have installed apache-activemq-5.18.5 on Amazon Linux on EC2 instance.
When I run command systemctl start activemq.service, I get below output-
But when I hit url to open activemq broker page, I ...
0
votes
1
answer
324
views
Mule 4.7 with ActiveMQ 5.18.5: JMSException 'invalid location: failover' due to automatic ?socket.verifyHostname parameter - how to resolve?
I'm upgrading my application to Mule 4.7 to enable Java 17 compatibility. In this setup, I’m using JMS Connector version 1.9.6 to connect to ActiveMQ Classic. My ActiveMQ Classic dependencies include ...
0
votes
1
answer
28
views
Why does the NoSuchMethodException problem occur when activemq-all is introduced?
When I introduced activemq-all in jetty and deployed the application, a NoSuchMethodException error occurred. However, when I introduced the activemq-client dependency, the error disappeared.
The ...
0
votes
1
answer
89
views
Cannot startup ActiveMQ Classic specifying a broker configuration file
I'm following ActiveMQ in Action published by Manning. I've successfully built the source-code "amq-in-action-example-src" using Maven in my Windows VM. I'm using the same version as the ...
0
votes
1
answer
52
views
Access ActiveMQ Classic JMS client statistics
I have an application that uses org.apache.activemq:activemq-client:6.1.3 to talk to an ActiveMQ Classic broker. I want to expose producer and consumer metrics (e.g. the number of bytes sent and ...
0
votes
1
answer
178
views
ActiveMQ Classic JMS 2.0 no support for PooledConnectionFactory
JMS Support 2.0 works fine with AMQ Classic 6.x, but if I use activemq-pool
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-pool</artifactId&...
0
votes
1
answer
119
views
Cron scheduler support in ActiveMQ Artemis
I am in the process of transitioning my ActiveMQ Classic-based project to ActiveMQ Artemis 2.19. (Target version for Artemis is preferred due to the project relying on Java 8.)
In ActiveMQ Classic, I ...
1
vote
2
answers
200
views
How to get the number of scheduled messages for an ActiveMQ Classic destination?
I schedule messages with the AMQ_SCHEDULED_DELAY header as documented for ActiveMQ Classic. This works as intended, but now I would like to retrieve the number of scheduled messages for a specific ...
0
votes
1
answer
169
views
Not able to connect to ActiveMQ 6.x with SSL client certificate and WITHOUT SASL
I have activemq classic 6.x version. I am trying to disable SASL resulting in the consumers and publishers to connect using only the SSL certificates. But it is not working. During my configuration ...
0
votes
0
answers
57
views
jmsTemplate.sendAndReceive Connection and session is not closed
I am using spring-boot-starter-activemq to push messages to ActiveMQ.
When I run my code I expect temporary queue is created, and after I got response it should be deleted, but queue is not deleted ...
0
votes
1
answer
400
views
Accessing ActiveMQ Classic web console for an instance installed in a remote server
I have installed ActiveMQ Classic in a VM in Azure with an IP address X.X.X.X, where another web application is also running. So it is a remote server.
Now, I need to get access to the ActiveMQ web ...
0
votes
0
answers
51
views
ActiveMQ consumer from Apache Camel deletes selector
I'm trying to make a durable topic subscription using Apache Camel, Spring Boot, and ActiveMQ Classic, and everything works fine except the selector. If I place the selector at the endpoint the ...
0
votes
1
answer
62
views
ActiveMQ Classic throws exception while reading JDBC journal during start up
We have an active-passive setup of ActiveMQ Classic 5.16.2 in production with JDBC for persistence. There was an operational issue with the DB few days back due to which the Oracle persistence store ...
0
votes
2
answers
163
views
Master/Slave non persistent ActiveMQ Classic configuration
I am trying to setup two ActiveMQ Classic brokers used as communication channel for several microservices.
I would like to:
Have the brokers on two different machines so that the two brokers are in ...
1
vote
0
answers
85
views
ActiveMQ Classic very slow with durable topic subscribers
We changed from normal, non-durable subscriptions to durable subscriptions in our ActiveMQ Classic instance to allow users to reconnect their WebSocket so they get all messages they missed. At first ...
0
votes
1
answer
111
views
Spring Boot and ActiveMQ Classic retry from OpenWire JMS client
I use Spring Boot with Java 17 and ActiveMQ Classic 6.1.2. When an exception occurs I want to retry with delay 60 seconds. The problem is that every time an exception is thrown in my application, the ...
0
votes
0
answers
158
views
ActiveMQ Classic with Spring Boot microservice-based application, reconnection issue
I'm working on a Spring Boot microservice-based backend application with ActiveMQ Classic to communicate between them. I had a problem in our production environment where, by maintenance, the ActiveMQ ...
0
votes
0
answers
438
views
Spring Boot Virtual Threads pinning with ActiveMQ Classic
I am on Spring Boot 3.2.5 with virtual threads enabled and connecting to an external ActiveMQ Classic broker using the ActiveMQ 5.18.4 client. I am using the JmsTemplate sendAndReceive() method to ...
1
vote
1
answer
346
views
ActiveMQ Artemis broker connection to ActiveMQ Classic
I'm trying to configure an instance of ActiveMQ Artemis 2.33 in order to connect with another broker AMQP, an instance of ActiveMQ Classic 5.15.
The goal is to receive messages in Artemis from one ...
-1
votes
1
answer
689
views
How do I solve this Tomcat class loading issue?
I have three Webapps on my Tomcat server. I use ActiveMQ to send messages between them. This has worked but now I'm trying to update from 5.14 to 5.18 and I'm running in to a class loading issue.
To ...
0
votes
2
answers
193
views
WSO2 ESB: Handling Retries and Error Codes in Message Processor with Multiple Message Stores
I'm developing an API using WSO2 ESB where I have configured two message stores and a message processor. In the scenario I'm facing, the message processor retries failed messages up to 5 times, but I ...
2
votes
2
answers
728
views
ActiveMQ Classic web console fails to start: Could not open ServletContext resource
I have noticed an issue in the recent upgrade of ActiveMQ from 5.16.1 to 5.16.7 where the ActiveMQ web console fails to start with the below exception. Other functionality is working fine but can't ...
0
votes
0
answers
120
views
Adding a delay on consumption of messages with Spring JMS DefaultMessageListenerContainer without using Delivery Delay
I have an implementation of DefaultMessageListenerContainer which will listen in on an IBM MQ Queue and something else publishes on this queue so whenever a message arrives, the listener consumes the ...
0
votes
2
answers
158
views
Inactivity monitor on HTTP transport is creating lots of clutter and failures
We are using ActiveMQ Classic 5.18.x. We're also using Camel 4.0.0 with the ActiveMQ component configured with the HTTP transport (because we are forced to based on the networks involved).
The traffic ...
-1
votes
1
answer
606
views
activemq 5.16.x not working after converting javax to jakarta using eclipse transformer
I am using eclipse transformer for javax to jakarta conversion, in the similar lines I converted my activemq-all 5.16.7 into jakarta using the same eclipse transformer, no errors during compilation, ...
0
votes
0
answers
37
views
Manage redeliveries in Spring Apache MQ on container
I am trying to put a spring consumer application to docker. This application listens to a queue (apache mq) and processes the message.
It has an existing logic:
If(msg.isRedelivered)
Do ...
-1
votes
1
answer
398
views
How to enable Message Persistence on AmazonMQ to avoid losing messages due to maintenance window?
Our team has single instance AmzonMQ broker with the following configuration:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<broker ...
1
vote
1
answer
93
views
JMS setMessageListener - with JMSContext not work
I have a simple producer & consumer application using ActiveMQ Classic 6.0.1.
This is the producer:
ConnectionFactory connectionFactory = new org.apache.activemq.ActiveMQConnectionFactory(...
0
votes
0
answers
396
views
Can't start ActiveMQ Classic on Linux with Java 17
I tried to start the ActiveMQ Classic 5.18.3 by command ./activemq console, but then I got the error:
java.io.IOException: Failed to bind to account.jetbrains.com/1.2.3.4:61614
I'm newbie on ActiveMQ,...
0
votes
1
answer
321
views
ActiveMQ Classic on Ubuntu 22.04 on VM starts but immediately exits
This installation was done on my KVM/Ubuntu by apt install, but I had the same problem after installing via download and unzipping everything in /opt and setting up the service file, etc. When I use ...
0
votes
1
answer
205
views
How to browse ActiveMQ queue using JMS selector when number of messages in queue is > 100K
I have an ActiveMQ (AmazonMQ) queue which normally stores between 100-150K messages at any given time before they are set to expire after a 24 hour period (JMSExpiration). I would like to browse the ...