Questions tagged [activemq]

Apache ActiveMQ is an open source (Apache 2.0 licensed) message broker which fully implements the Java Message Service 1.1 (JMS). It provides "Enterprise Features" like clustering, multiple message stores, and ability to use any database as a JMS persistence provider besides VM, cache, and journal persistency.

Apache ActiveMQ is an open source (Apache 2.0 licensed) message broker which fully implements the Java Message Service 1.1 (JMS). It provides Enterprise Features like clustering, multiple message stores, and ability to use any database as a JMS persistence provider besides VM, cache, and journal persistency.

Apart from Java, ActiveMQ can also be used from .NET, C/C++ or Delphi or from scripting languages like Perl, Python, PHP and Ruby via various "Cross Language Clients" together with connecting to many protocols and platforms. These include several standard wire-level protocols, plus their own protocol called OpenWire.

ActiveMQ is used in enterprise service bus implementations such as Apache ServiceMix, Apache Camel, and Mule.

ActiveMQ is often used with Apache ServiceMix, Apache Camel and Apache CXF in SOA infrastructure projects.

Coinciding with the release of Apache ActiveMQ 5.3, the world's first results for the SPECjms2007 industry standard benchmark were announced. Four results were submitted to the SPEC and accepted for publication. The results cover different topologies to analyze the scalability of Apache ActiveMQ in two dimensions. Quoted from: http://en.wikipedia.org/wiki/Apache_ActiveMQ

Features:

  • Supports a variety of Cross Language Clients and Protocols from Java, C, C++, C#, Ruby, Perl, Python, PHP
    • OpenWire for high performance clients in Java, C, C++, C#
    • Stomp support so that clients can be written easily in C, Ruby, Perl, Python, PHP, ActionScript/Flash, Smalltalk, Bash to talk to ActiveMQ as well as any other popular Message Broker
  • Full support for the Enterprise Integration Patterns both in the JMS client and the Message Broker
  • Supports many advanced features such as Message Groups, Virtual Destinations, Wildcards and Composite Destinations
  • Fully supports JMS 1.1 and J2EE 1.4 with support for transient, persistent, transactional and XA messaging
  • Spring Support so that ActiveMQ can be easily embedded into Spring applications and configured using Spring's XML configuration mechanism
  • Tested inside popular J2EE servers such as TomEE, Geronimo, JBoss, GlassFish and WebLogic
    • Includes JCA 1.5 resource adaptors for inbound & outbound messaging so that ActiveMQ should auto-deploy in any J2EE 1.4 compliant server
  • Supports pluggable transport protocols such as in-VM, TCP, SSL, NIO, UDP, multicast, JGroups and JXTA transports
  • Supports very fast persistence using JDBC along with a high performance journal
  • Designed for high performance clustering, client-server, peer based communication
  • REST API to provide technology agnostic and language neutral web based API to messaging
  • Ajax to support web streaming support to web browsers using pure DHTML, allowing web browsers to be part of the messaging fabric
  • CXF and Axis Support so that ActiveMQ can be easily dropped into either of these web service stacks to provide reliable messaging
  • Can be used as an in memory JMS provider, ideal for unit testing JMS

Supported Languages: , , , , , , , , , , , ,

Supported Protocols: , , , , ,

Official Website: http://activemq.apache.org/

Useful Links:

5880 questions
16
votes
5 answers

ActiveMQ - delete/purge all queue via command line

Is there a way to delete / purge all queues in ActiveMQ via the command line (win/linux)? I could only find the commands for a specific queue. Or maybe there's a way to do this via the activeMQ admin? Again, I only found how to delete/purge the…
Ayelet
  • 1,713
  • 9
  • 29
  • 43
16
votes
2 answers

Disable jmx in activemq network of brokers (spring, xbean)

Since I've struggled a lot with this problem, I am posting my solution. Disabling jmx in an activemq network of brokers removes race conditions about the registration of the jmx connector. When starting multiple activemq servers on the same…
subes
  • 1,832
  • 5
  • 22
  • 28
15
votes
2 answers

Any simple way to get the queue length of an ActiveMQ?

How to obtain the queue length (number of unconsumed messages sent to queue) in ActiveMQ, using Java?
user705414
  • 20,472
  • 39
  • 112
  • 155
15
votes
4 answers

How to set the ActiveMQ redeliveryPolicy on a queue?

How do I set the redeliveryPolicy in ActiveMQ on a Queue? 1) In the doc, see: activeMQ Redelivery, the explain that you should set it on the ConnectionFactory or Connection. But I want to use different value's for different Queue's. 2) Apart from…
edbras
  • 4,145
  • 9
  • 41
  • 78
15
votes
2 answers

Keep spring context alive until JMS messages are consumed

I have a pretty standard setup related to JMS - Spring Boot and ActiveMQ. It works fine, until i tried to do a simple integration test. After some investigation I found that both the Spring context and the embedded broker are closed after the first…
Milan Milanov
  • 412
  • 1
  • 8
  • 27
15
votes
3 answers

How to configure multiple JmsListener for multiple topics

In my project I add two different JmsListener but when I run project in ActiveMQ panel only one of these topics has consumer! So should I add separate jmsListenerContainerFactory configuration for each JmsListener ?? @JmsListener(destination =…
mohsenJsh
  • 2,048
  • 3
  • 25
  • 49
15
votes
7 answers

What to use for Messaging with C#

So my company stores alot of data in a foxpro database and trying to get around the performance hit of touching it directly I was thinking of messaging anything that can be done asynchronously for a snappier user experience. I started looking at…
Kevin Sheffield
  • 3,618
  • 2
  • 24
  • 22
15
votes
4 answers

Apache ActiveMQ browser can't connect to JMX console

I am using Apache ActiveMQ version 5.8.0 and I downloaded Apache ActiveMQ Browser version 2.5.2.8 Within Apache ActiveMQ I edited the activemq.xml configuration to use JMX:
Mark Veenstra
  • 4,691
  • 6
  • 35
  • 66
15
votes
4 answers

Is there a FIFO message queuing service offering the high availability of Amazon SQS?

Would have loved to use Amazon SQS if it provided some semblance of FIFO access, but the sequence seems to completely random. Is there something that would provide me FIFO queuing as-a-cloud-service with the high availability of SQS? If that is…
user393144
  • 1,575
  • 3
  • 14
  • 21
14
votes
1 answer

Why ActiveMQ 5.14.x can't start embedded with camel-jms component 2.18.3

Here is the simple spring boot project (version 1.5.2) to demonstrate the problem: https://github.com/lanwen/camel-jms-activemq-test It has Apache Camel version 2.18.3 On branch master all works fine because of activemq-camel=5.14.4 and…
lanwen
  • 2,251
  • 1
  • 17
  • 30
14
votes
1 answer

Web Socket vs JMS or Activemq

I want to know what are the differences between Java Web socket and JMS (or ActiveMq) ? Please let me know or have any source having any comparison of WebSocket and JMS and where to use websocket and not to and where to use Activemq instead of…
Débora
  • 5,816
  • 28
  • 99
  • 171
14
votes
4 answers

ActiveMQ KahaDB always locking and waiting

I am trying to use ActiveMQ in a relatively simple work queue use case. I have one queue, and have a simple Producer and Consumer. My question is what am I doing wrong that continuously makes the DB lock? here is the message I get…
Mark Giaconia
  • 3,844
  • 5
  • 20
  • 42
14
votes
1 answer

How can I change default port number of Activemq

I am using Windows 7 OS. I downloaded apache-activemq-5.8.0.zip from these Link and extracted in C:\Users\Infratab Bangalore\Desktop\Queueing\apache-activemq-5.8.0 directory. While Activemq initialization time I read Pre-Installation Requirements…
Hanumath
  • 1,117
  • 9
  • 23
  • 41
13
votes
3 answers

How to set up Monitoring for queue in activemq

I read in ActiveMQ page, using JMX we can monitor queues in activemq. How can we get notified if a queue has messages (depth high) or service interval is high in ActiveMQ. Without using any shell scripts in unix environment. Is it possible through…
Vignesh
  • 949
  • 2
  • 21
  • 38
13
votes
4 answers

Signal a rollback from a JMS MessageListener

I've been working with JMS and ActiveMQ. Everything is working wonders. I am not using spring, nor can I. The interface javax.jms.MessageListener has only one method, onMessage. From within a implementation, there is a chance an exception will be…
HMM
  • 2,987
  • 1
  • 20
  • 30