0

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

Moonlit
  • 5,171
  • 14
  • 57
  • 95

1 Answers1

0

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.

Nicholas
  • 15,916
  • 4
  • 42
  • 66