jms

Apache ActiveMQ Load Balancing Example

1. Introduction Apache ActiveMQ (AMQ) is a message broker which transfers the message from the sender to the receiver. Load Balancing is the process of distributing data across services for better performance. In this example, we will demonstrate how to build a load-balanced AMQ client application. 2. The Component Diagram In this example, we will demonstrate two forms of load balancing outlined in the diagram: ...

Read More »

Apache ActiveMQ Best Practices Tutorial

Apache ActiveMQ is an open source messaging server written in Java which implements JMS 1.1 specifications. In this tutorial, you will learn how to develop a few Java applications which integrate ActiveMQ to send and receive messages to and from destinations. If you already know how to install and configure ActiveMQ, you can skip the first four chapters. Table Of Contents ...

Read More »

Apache ActiveMQ BrokerService example

Using this example, we will be learning about Apache ActiveMQ BrokerService and various other ways in which a broker in ActiveMQ can be started and configured. But before we begin with our example, it is expected that we have a basic understanding of JMS concepts, ActiveMQ and Java/J2EE. JMS stands for Java Messaging API and Apache ActiveMQ is an open source message broker written in ...

Read More »

Apache ActiveMQ Advisory Example

In this example, we will be discussing about Apache ActiveMQ Advisory. But before we start with our example, it is expected that we have a basic understanding of JMS concepts, ActiveMQ and Java/J2EE. JMS stands for Java Messaging API and ActiveMQ is a java based implementation of JMS. ActiveMQ acts as a message broker. It is open source and helps in asynchronous message transfer ...

Read More »

Apache ActiveMQ “Hello World” Example

In this example, we shall show you how to make use of ActiveMQ as a message broker for exchanging messages between applications connected via a network. Before starting with our example, it is expected that we have a basic understanding of JMS concepts and Java/J2EE. JMS stands for Java Messaging Service, which is a JAVA API that helps communication between ...

Read More »

ActiveMQ Tutorial for beginners

1. Introduction Before we go on with this article, we expect the pre-requisites are met, where you must have at least a beginner level understanding of the JMS API. Once you are aware of it, you might have also come across several popular JMS providers. JMS Provider is a messaging system that implements the JMS specification. This acts as the Message ...

Read More »

JMS QueueBrowser Example

A point-to-point messaging queue contains messages to be consumed by clients interested in the specific destination queue. If one wants to simply monitor the messages without actually consuming them then getting hold of QueueObject will allow one to peek ahead at the pending messages. In this article, we will see an examples of QueueBrowser object. 1. Dependencies In order to ...

Read More »

JMS TextMessage Example

JMS defines several types of messages that can be posted by an application. They all extend the Message interface. This type carries a java.lang.String as its payload. It is useful for exchanging simple text messages and also for more complex character data, such as XML documents. In this article, we will look into examples of simple as well as XML based ...

Read More »

JMS MessageListener Example

A message can be sent either through point-to-point or publish-and-subscribe messaging styles. In both the ways, the producer and consumer work in a decoupled manner. The message is sent to a named destination. There are two ways a client can receive messages from a message consumer: The message consumer used one of its receive() methods to call the blocking receive() ...

Read More »

JMS Client Example

The term “JMS client” refers to Java components or applications that use the JMS API and a JMS provider to send and receive messages. JMS supports two styles of messaging: the point−to−point and publis−and−subscribe messaging styles. Before a client can use a JMS provider to send and receive messages, the client must decide which messaging style it wants to use. A ...

Read More »