-Explain the basics JMS
- Use API of Java
References
YouTube link :
https://www.youtube.com/playlist?list=PLtDIUAtyP4lhV7CsYfLuIx26UeG4J-ujZ
GitHub :
https://github.com/Ghadeerof
2. Intro 1
• JMS (Java MessageService) is an API that provides the facilityto create, send and read messages.
• It provides looselycoupled, reliable and asynchronous communication.
• JMS is also known as a messaging service
3. Understanding Messaging 2
• Messaging is a technique to communicateapplications or software components.
• JMS is mainly usedto sendand receive messagefromone applicationto another.
4. Advantage of JMS 3
• Asynchronous: To receive the message, client is not required to send request. Message will arrive
automatically to the client.
• Reliable: It provides assurance that messageis delivered.
5. Messaging Domains 4
There are two types of messaging domains in JMS :
• Point-to-PointMessaging Domain
• Publisher/Subscriber Messaging Domain
6. Point-to-Point (PTP) Messaging Domain 5
• In PTP model, one message is delivered to one receiver only. Here, Queue is used as a message
oriented middleware (MOM).
• The Queue is responsible to hold the message until receiver is ready.
• In PTP model, there is no timing dependencybetween sender and receiver.
7. Publisher/Subscriber (Pub/Sub) Messaging Domain 7
• In Pub/Sub model, one message is delivered to all the subscribers. It is like broadcasting.
• Topicis used as a messageorientedmiddleware that is responsible to hold and deliver messages.
• In PTP model, there is timing dependency between publisher and subscriber.