Author: saqibkhan
-
Publisher Application
Now let’s create a publisher application which will send message to the RabbitMQ Exchange. This exchange will deliver the message to the queue which is bound with the exchange. Create Project Using eclipse, select File → New → Maven Project. Tick the Create a simple project(skip archetype selection) and click Next. Enter the details, as shown below − Click on Finish button…
-
Test Application
Start the Producer Application In eclipse, right click on the Producer.java source, and select Run As → Java Application. Producer application will start running and you’ll see the output as follows − Start the Consumer Application In eclipse, right click on the Consumer.java source, and select Run As → Java Application. Consumer application will start…
-
Consumer Application
Now let’s create a consumer application which will receive message from the RabbitMQ Queue. Create Project Using eclipse, select File → New → Maven Project. Tick the Create a simple project(skip archetype selection) and click Next. Enter the details, as shown below: Click on Finish button and a new project will be created. pom.xml Now update the content of pom.xml to include…
-
Producer Application
Now let’s create a producer application which will send message to the RabbitMQ Queue. Create Project Using eclipse, select File → New → Maven Project. Tick the Create a simple project(skip archetype selection) and click Next. Enter the details, as shown below − Click on Finish button and a new project will be created. pom.xml Now update the content of pom.xml to…
-
Installation
RabbitMQ is built on Erlang runtime so before installing RabbitMQ, we need to download Erlang and install it. Make sure, you are using administrative priviledge to install Erlang and RabbitMQ. Erlang Erlang is a general-purpose programming language and runtime environment. You can download the latest version of Erlang from its home page − Download Erlang/OTP.. We…
-
Features
RabbitMQ is one of the most popular open source message broker. It is designed to provide high availability, scalability, reliability, performance and security for enterprise level messaging applications. Following are some of the salient features of RabbitMQ.
-
Environment Setup
This chapter will guide you on how to prepare a development environment to start your work with RabbitMQ. It will also teach you how to set up JDK, Maven and Eclipse on your machine before you set up RabbitMQ − Setup Java Development Kit (JDK) You can download the latest version of SDK from Oracle’s…
-
Overview
What is RabbitMQ? RabbitMQ is an open source message broker written in Java. It’s fully compliant with JMS 1.1 standards. It is developed and maintained by Apache Software Foundation and is licensed under Apache license. It provides high availability, scalability, reliability, performance and security for enterprise level messaging applications. JMS is a specification that allows…
-
SMTP Servers
SMTP is an acronym for Simple Mail Transfer Protocol. It is an Internet standard for electronic mail (e-mail) transmission across Internet Protocol (IP) networks. SMTP uses TCP port 25. SMTP connections secured by SSL are known by the shorthand SMTPS, though SMTPS is not a protocol in its own right. JavaMail API has package com.sun.mail.smtp which act as…
-
Bounced Messages
A message can be bounced for several reasons. This problem is discussed in depth at rfc1211. Only a server can determine the existence of a particular mailbox or user name. When the server detects an error, it will return a message indicating the reason for the failure to the sender of the original message. There are…