• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Core Java
  • Design Patterns
  • JSP
  • Servlets
  • Building Tools
  • jQuery
  • Spring
  • Hibernate
  • Mongo DB
  • More
    • HTML
    • SCJP
    • AJAX
    • UML
    • Struts
    • J2EE
    • Testing
    • Angular JS

J2EE Reference

  • Home
  • About Us
    • Java Learning Centers
  • Contact Us

JMS Producer

Point to Point Messaging Model Architecture

May 1, 2017 By j2eereference Leave a Comment

Point to Point Messaging Model is a messaging paradigm supported by JMS (Java Message Service). Point to Point Messaging Model is called as P2P model in short. It is intended to provide asynchronous message transmission between sender and receiver using queues. In this article, lets discuss about Point to Point Messaging Model Architecture in detail.

In Point to Point Messaging Model, the components are:

  • Destination: Queue
  • JMS Producer: Sender
  • JMS Consumer: Receiver

Point to Point Messaging Model Architecture

In Point to Point Messaging Model, JMS Sender and JMS Receiver will be configured to a Queue. JMS Sender will send a message to the JMS Receiver through Queue. JMS Receiver will receive the message from the Queue and read it. The Point to Point Messaging Model architecture is diagrammatically represented below:

Point to Point Messaging Model Architecture

 

Also, what will happen if the JMS Receiver is not active or alive when the JMS Sender sends the message? Even in this case, message transmission will happen successfully. If the Receiver is not available, the Queue will store the message until the Receiver becomes available to receive the message. This is because Point to Point Messaging Model does not enforce any time line dependency between the Sender and Receiver.

Possible Ways to Implement Point to Point Messaging Model Architecture

Point to Point Messaging Model Architecture can be implemented in the following ways:

  • Single sender and single receiver connected to a queue
  • Single sender and several receivers connected to a queue
  • Several senders and single receiver connected to a queue
  • Several senders and several receivers connected to a queue

Any number of Senders and Receivers can be configured to a Queue as listed above, but the JMS Message sent by one Sender can be received by only one Receiver. This is because Point to Point establishes a 1 to 1 relationship between the Sender and Receiver. Thus in Point to Point messaging model, message from one sender cannot be transmitted to multiple receivers.

 

Related Posts

  • Differences between Point to Point Messaging Model and Publish Subscribe Messaging Model
  • Publish Subscribe Messaging Model Architecture
  • How JMS is different from RPC?
  • Different types of messages available in JMS API
  • Advantages of Java Message Service (JMS)
  • Java Message Service and JMS Programming Model
  • What is JavaServer Pages (JSP)?
  • Java EE or J2EE Architecture

Filed Under: J2EE Tagged With: JMS Consumer, JMS Destination, JMS Producer, JMS receiver, JMS sender, p2p model, point to point messaging model, point to point messaging model architecture, queue

Primary Sidebar

FOLLOW US ONLINE

  • View J2eereference-166104970118637’s profile on Facebook
  • View j2eereference’s profile on Twitter
  • View j2eereference’s profile on LinkedIn

Subscribe by email

Recent posts

  • What is parallel Stream
  • reduce method of the Stream class
  • Difference between the findFirst() and findAny() method
  • intern() method of String class
  • SOLID – Five principles of object-oriented software design
  • Java Coding Best Practices
  • How to use lambda expression effectively
  • Enhanced pseudo-Random Number Generators in java17
  • How to use Foreign-Memory Access API
  • Pattern Matching for instanceof
  • Text Blocks – Feature added in Java17
  • Record – The new feature added in java 17
  • What is Sealed Class
  • Features added in Java 17
  • Java Buzzwords

Footer

Core Java
Design Patterns
JSP
Servlets
HTML
Building Tools
AJAX
SCJP
jQuery
Testing
Spring
UML
Struts
Java Centers
Java Training
Home
About Us
Contact Us
Copyright © j2eereference.com. All right reserved.