
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples
Difference between Point-To-Point and Publish/Subscribe JMS Messaging Models
JMS is an acronym Java message service. Java message service is an api which are provided by Java. It is used for implementing messaging system in your application.
JMS is an API or specification which does not contain implementation therefore to use JMS have to some third party service provider like ActiveMq , Weblogic messaging and etc.
JMS support two types of messaging domain −
- Point to Point Messaging
- Publish /Subscribe messaging
Sr. No. | Key | Point to Point Messaging | Publish /Subscribe |
---|---|---|---|
1 | Basic | It is one to one destination of message. Message sent into the queue and that message can be read by only one receiver. | It is one to many messaging approach. Message sent to the topic and message can be received by multiple consumers |
2 | Pull /Push Mechanism | It used pull mechanism, client need to poll for the message every time | It used push based model, message can be broadcast to all consumers |
3 | Acknowledgment | Acknowledgment is mandatory | Acknowledgment is optional |
4. | Timing dependency | In PTP model, there is no timing dependency between sender and receiver. | There is a timing dependency between publishers and subscribers. |
- Related Articles
- Difference between Point-to-Point and Multi-point Communication
- Difference between Three Point Starter and Four Point Starter
- Difference between Apache Kafka and JMS.
- SAP PI messaging service is JMS compliant or not
- What is the difference between Point to Point Link and Star Topology Network?
- Differentiate between accounting breakeven point and financial breakeven point.
- What is the difference between integer and floating point literals in Java?
- Point-to-Point Protocol (PPP)
- Fixed Point and Floating Point Number Representations
- What is Melting point and Boiling point?
- What is Point-to-Point Protocol (PPP)?
- Decimal fixed point and floating point arithmetic in Python
- Rahul goes 75 km west from point A to reach point B then he moves 50 km east to reach point C. Find the distance between A and C.
- What is the Point-to-Point Tunneling Protocol(PPTP)?
- What is Point to Point Protocol (PPP) in Computer Network?

Advertisements