PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, September 20, 2022

[FIXED] which client receives the message from a queue

 September 20, 2022     consumer, jms, message-queue     No comments   

Issue

if i have one messagequeue and multiple standalone programs which try to receive messages from this queue via

sess.receive();

which clientprogram will actually receive the message? how is this decided? thank you


Solution

All things being equal, any of the receivers could receive the message (but only one of them). Architecturaly speaking, you should not care which receiver gets the message. If you have different message handling in the receivers, you should consider using selectors or different queues.



Answered By - Nicholas
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing