jms

Apache ActiveMQ SSL Example

1. Introduction Secure Sockets Layer (SSL) is a standard security protocol for establishing encrypted links between a web server and a browser in an online communication. SSL was originally developed for securing web browser and server communications by Netscape in 1994. Subsequently, the protocol was adopted by the Internet Engineering Task Force (IETF) and renamed to Transport Layer Security (TLS) ...

Read More »

Apache ActiveMQ File Transfer Example

1. Introduction Apache ActiveMQ (AMQ) is a message broker which transfers messages from sender to receiver. In this example, I will build two simple AMQ applications which will transfer files from one location to another: A producer sends a file via BytesMessage or BlobMessage A consumer receives the BytesMessage or BlobMessage and saves it as a file 2. JMS Message Type JMS defines six ...

Read More »

Apache ActiveMQ Distributed Queue Tutorial

Apache ActiveMQ (AMQ) is an open source messaging server written in Java, which implements JMS 1.1 specifications. In this article, I will demonstrate how to utilize a distributed queue within a group of AMQ brokers. Table Of Contents 1. Introduction 2. Apache ActiveMQ Server Installation 3. Producer Java Application 3.1. MessageProducerApp 3.2. QueueMessageProducer 3.3. Export MessageProducerApp as a Jar 4. ...

Read More »

Apache ActiveMQ Monitoring Tutorial

Apache ActiveMQ (AMQ) is an open source messaging server written in Java which implements JMS 1.1 specifications. In this example, I will explain how to monitor an AMQ server. Table Of Contents 1. Introduction 2. Monitor ActiveMQ JVM 3. Monitor ActiveMQ Web Console 4. Monitor ActiveMQ File System 5. Monitor ActiveMQ Application 6. Java Example 6.1. Technologies used 6.2. Data ...

Read More »

Apache ActiveMQ Failover Example

Apache ActiveMQ is an open source messaging server written in Java, which implements JMS 1.1 specifications. In this example, I will demonstrate how to configure a group of AMQ brokers to make the system fault-tolerant. Table Of Contents 1. Introduction 2. Apache ActiveMQ Server Installation 3. Apache ActiveMQ Server Configuration 3.1 Two Standalone ActiveMQ Brokers 3.2 Master/Slave ActiveMQ Brokers 3.3 ...

Read More »

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 »