Questions tagged [hornetq]

HornetQ is an open source asynchronous messaging project from JBoss.

In June of 2015 the HornetQ code-base was donated to the Apache ActiveMQ project and it lives on as the Apache ActiveMQ Artemis broker. Migration when possible is strongly recommended to get the latest bug fixes and new features.

HornetQ is an open source project to build a multi-protocol, embeddable, very high performance, clustered, asynchronous messaging system.

HornetQ is an example of Message Oriented Middleware (MoM).

Source is available at https://github.com/hornetq/hornetq.

Developers hang around at channel #hornetq at IRC server irc.freenode.net.

616 questions
178
votes
1 answer

Steps to make an existing JNDI HornetQ service as HA?

TL;DR What are the steps to configure a HA-JNDI service with a HornetQ setup? I believe the documentation is a little scattered. I have read through the docs here but doesn't seem to illustrate in detail. Longer version: So we have a HornetQ JMS…
gravetii
  • 9,273
  • 9
  • 56
  • 75
104
votes
3 answers

Spring Boot embedded HornetQ cluster not forwarding messages

I'm trying to create a static cluster of two Spring Boot applications with embedded HornetQ servers. One application/server will be handling external events and generating messages to be sent to a message queue. The other application/server will be…
ci_
  • 8,594
  • 10
  • 39
  • 63
36
votes
5 answers

Which embedded messaging system -> ActiveMQ or HornetQ

I would appreciate some general pointers and opinions regarding which of the two messaging systems is easier to manage has less gotchas or magic stuff one needs to know and avoid has less overal dependencies is simple to work with.
mP.
  • 18,002
  • 10
  • 71
  • 105
26
votes
2 answers

How to use FIND_JNI on cmake

I'm trying to write a build for my project where I'm trying to replace autobuild, and I need to proper use FIND_JNI. I could make a simple build but it's not properly finding jni.h And I need to find a proper way (without a hack) to define the Java…
Clebert Suconic
  • 5,353
  • 2
  • 22
  • 35
25
votes
4 answers

Advantages of HornetQ vs ActiveMQ vs Qpid

I was browsing for an open source messaging software and after some good bit of research I came across these three products. I've taken these out for a preliminary test drive, having had them handle messages for queues and topics, and from what I've…
Raymond Linear
  • 251
  • 1
  • 3
  • 3
23
votes
4 answers

Data consistency in XA transactions

Suppose we have a database (e.g. Oracle) and a JMS provider (e.g. HornetQ) participating in an XA transaction. A message is sent to a JMS queue and some data are persisted in the database in the same distributed transaction. After the transaction is…
Dragan Bozanovic
  • 23,102
  • 5
  • 43
  • 110
16
votes
4 answers

JMS message priority not working on Message

I need to set message priority so that High priority messages are consumed before Low priority messages by Receivers. First I tried with message.setJMSPriority() method to set the priority but it was not working in HornetQ and ActiveMQ so finally I…
SmartSolution
  • 2,320
  • 5
  • 37
  • 49
15
votes
2 answers

JMS queue with multiple consumers

I have a JBoss-6 server with HornetQ and a single queue: There a different consumers (on different machines) connected to this queue, but only a single consumer is active at a…
Thor
  • 6,607
  • 13
  • 62
  • 96
15
votes
3 answers

What is the meaning of 'durable' attribute for JMS Queue in JBoss 7 with HornetQ?

During configuration of JMS queues on JBoss 7 with HornetQ (based on standalone-full.xml configuration) I noticed an attribute 'durable'. I browsed several sources and many of them stated queues are always 'durable', meaning the message will be…
acalypso
  • 800
  • 1
  • 8
  • 26
12
votes
4 answers

Is "fair queuing" possible with JMS

I need to implement a fair queuing system such that messages are processed in a round robin fashion, based on the value of some message header, for all values of that header on messages currently queued. Messages in the system are naturally grouped…
ptomli
  • 11,730
  • 4
  • 40
  • 68
12
votes
2 answers

Local XARecoveryModule.xaRecovery got XA exception

Any thoughts on what could be causing this exception: 03:54:34,497 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016027: Local XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMERR: javax.transaction.xa.XAException: Error trying…
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100
11
votes
4 answers

How to send Message to particular Receiver using JMS Queue

Is it possible to send message to particular receiver using JMS Queue(HornetQ)? Among so many receivers, I want certain message to be received by receiver which are running on Linux OS. Every suggestion is appriciated. Thanks.
SmartSolution
  • 2,320
  • 5
  • 37
  • 49
11
votes
1 answer

HornetQ: Remove all messages from queue not working with consumer on queue

I have a simple test case where I start a HornetQ server (V2.4.7.Final) as part of a Spring context. This works quite well and I have access to a queue via JMS, the HornetQ API and/or JMX. Testcase The test case is supposed to empty the queue at…
Florian
  • 1,142
  • 1
  • 9
  • 21
10
votes
3 answers

How can I fix blocking issue on a new install of ActiveMQ Artemis?

I've been tasked with evaluating ActiveMQ Artemis for JMS clients. I have RabbmitMQ experience, but none with ActiveMQ Artemis & JMS. I installed Artemis to my local machine, created a new broker per the instructions, and set it up as a Windows…
user640118
  • 803
  • 2
  • 13
  • 25
9
votes
1 answer

Thread handling in Java HornetQ client

I'm trying to understand how to deal with threads within a Java client that connects to HornetQ. I'm not getting a specific error but fail to understand how I'm expected to deal with threads in the first place (with respect to the HornetQ client and…
Martin Geisse
  • 1,189
  • 1
  • 9
  • 22
1
2 3
41 42