23.07.2013 Views

O'Reilly - Java Message Service

O'Reilly - Java Message Service

O'Reilly - Java Message Service

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

D.6 Not Delivered Semantics<br />

<strong>Java</strong> <strong>Message</strong> <strong>Service</strong><br />

What happens to messages that are not selected for delivery to the consumer by its<br />

message selector? This depends on the message model used.<br />

For the publish-and-subscribe model, the messages are not delivered to that consumer;<br />

they are, however, delivered to other pub/sub consumers. This is true for both nondurable<br />

and durable subscriptions.<br />

For the p2p model, any messages that are not selected by the consumer are not visible to<br />

that consumer. They are, however, visible to other p2p consumers.<br />

179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!