I’m running an ActiveMQ broker (version 5.15.12 and later downgraded to 5.15.8) on a windows server on which several local applications are running that are connecting. During heavier than average load on ActiveMQ, it happens regularly that the initial connection to ActiveMQ cannot be made by the applications (all (10) application seem to be affected evenly). On average, the web
Tag: activemq
Difference between “camel-activemq” vs “activemq-camel”
We are upgrading our system to newest stable frameworks/libraries. However, i found difficulty in understand between these two camel-activemq vs activemq-camel. Below are details: We are upgrading ActiveMQ to 5.16.2 version. Here AMQ provides “activemq-camel” libraries with its own camel dependencies like: Also, we are planning to migrate a service which runs on camel-2.x to 3.11.3. Here i see camel
ActiveMQ batch consumer
I have a requirement to consume the messages from the ActiveMQ topic and persist them in mongo. I am wondering if there is a way/configuration for consuming the messages in batch from the topic instead of reading messages one by one and making a DB call for every message. I am imagining the end solution will do something like: Consumes
ActiveMQ Broker Fails To Respect Max Delivery Attempts Following Client Crash
I am using ActiveMQ 5.15.14 with a customized redelivery policy on the broker to deliver bad messages to the DLQ after one redelivery attempt to my clients. When using a Spring Boot based client this works correctly when an exception is thrown from within the Java code. However if the Java client is crashes or is abruptly terminated, the redelivery
Spring and JMS DynamicDestinationResolution
I am using the latest Spring 4 and ActiveMQ to put JMS messages on a queue. Using the JMSTemplate, I have a default queue, and the sample code I have lets me put a message on the default queue with no issues. There is also a sample code that lets me put a message on a Destination … this is
Better way to wait to receive Async messages in ActiveMQ
I have used ActiveMQ to Send messages and Receive them Asynchronously. There, I’m having a problem with deciding the best way to waiting in the for messages. Sleeping thread in a loop is one option. But it feels doesn’t look good for me. Can anyone suggest a better way for this. AsyncReceiver.java Sender.java Answer There are two ways to process/consume
ActiveMQ get queue size without using JMX, JMS
I need a way for getting queue size in ActiveMQ without using JMX or Iterate all queue using JMS. Is there any solution for getting queue size using ActiveMQ API. Answer There is no API in JMS for querying the broker for stats, that goes against the concept of decoupling the client from each other and the intermediate broker. ActiveMQ
ActiveMQ setup – Unable to send the message to Queue (error – java.io.IOException: Unknown data type: 47)
I have installed ActiveMQ and could access the url at – http://localhost:8161/admin/queues.jsp. When I try to drop a message to a queue I am getting the below error. The sample code is given below: Spring xml is: Error is: Answer The ‘Unknown data type: 47’ error is due to the configuration you are using for the following broker URL: The
Spring JMS(ActiveMQ) delayed delivery of messages
We’re trying to set a delay on some JMS messages, so that a message will only be added to the queue/ received by the listener after x time. So far we’ve tried 2 approaches that didn’t work. 1) According to the spring documentation, we can set the delivery delay on the JMSTemplate. This is the sample code we tried: However,
A fatal error has been detected by the Java Runtime Environment. EXCEPTION_ACCESS_VIOLATION
I have java 1.6, maven 2, activeMQ 5.5 and functional tests with testng. When I launch it in Idea then OK, but when I try to launch them with maven from console then process suspends after trying to send message via activeMQ and after some time crashes with the following error in log: I have no idea what’s going on.