In this tutorial, I will explain how to send and receive JMS messages to/from Queues.
EMS - Enterprise Message Service, which's implemented by using Java Message Service (JMS) to integrate the applications. EMS acts as a Message-oriented-middleware (MOM) and creates a common communication protocol between applications and allows us to easily integrate new and existing applications.
The EMS supports Point-to-Point & Publish-and-Subscribe messaging models. The objects which we used for these messaging models are queues and topics.
Point-to-Point - Queue
Point-to-point messaging queues and will have one producer and one consumer per message. The queue will store messages until they are received by a consumer (Persistent). More than one producer can send messages to queue and more than one consumer can receive messages from the same queue.
Publish-and-Subscribe - Topic
A publisher can send a message to a single topic and can be received by many subscribers. Many publishers can publish the messages on the same topic. In this model, the topic won’t store the messages. Only the subscriber was listening to the topic when the publisher sends the message will get it.
Start EMS server
Go to Windows>Run>services.msc
And start it
Open EMS Admin ToolThis CLI is used to create queues/topics and manage them.
No comments:
Post a Comment