Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8115951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:39:03+00:00 2026-06-06T03:39:03+00:00

Java Message Service book by O’Reilly Media says: use request/reply model in point-to-point messaging.

  • 0

“Java Message Service” book by O’Reilly Media says:

use request/reply model in point-to-point messaging.

We can use message selectors in pub/sub messaging, so writing a request/reply model is as simple as writing a simple selector on reply topic:

  1. publisher publishes a message with some unique property(such as UUID as correlationID)
  2. subscriber responds for the message with the same UUID as correlationID
  3. publisher(also subscriber of the reply topic) selects messages with the UUID sent.

Is this a wrong pattern?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:39:07+00:00Added an answer on June 6, 2026 at 3:39 am

    Request/Reply messaging pattern is typically used for invoking a service hosted by service provider. Based on service request, a provider will reply with an appropriate response. So it’s one-to-one. Here requestor and responder know each other.

    In case of pub/sub, publisher and subscriber do not know each other. There could be a number of publisher publishing on a topic and there could be thousands of subscribers listening for that topic. So after receiving publication, if a subscriber replies to request using a topic, then that publication could go to a number of subscribers. Such a thing might flood the network.

    In my opinion Request/Reply model must be used in P2P messaging and not Pub/Sub.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use JMS (Java Message Service API) in my java application to work with
In Java, How to compose an HTTP request message and send it to an
I have an activity called message.java which is bound to the service GPS.java. The
Get a problem when installing java application as service in windows environment(Win 7). use
Is there any difference between an asynchronous JMS (Java Messaging Service) consumer vs an
What are the reasons that can motivate a programmer to use Java JMS (Java
I am creating a Spring REST web service in java, that can be used
I am validating XML against a XSD. But my java validation error message is
In java, message dialogs open in middle of the Frame window by default in
Our Java app writes to MQ Series queues via a Weblogic JMS Message Bridge.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.