Message consumers

Message consumers can be classified as durable and non-durable subscribers and synchronous and asynchronous message consumers.

  • Durable subscribers
    A durable subscriber is a message consumer that receives all messages published on a topic, including messages published while the subscriber is inactive.
  • Non-durable subscribers
    A non-durable subscriber is a message consumer that only receives messages that are published while the subscriber is active. Messages delivered while the subscriber is inactive are lost.
  • Synchronous and asynchronous message consumers
    The synchronous message consumer receives the messages from a queue synchronously and the asynchronous message consumer receives message from a queue asynchronously.
  • Poison messages in XMS
    A poison message is a message that cannot be processed by a receiving MDB application. If a poison message is encountered, the XMS MessageConsumer object can requeue it according to two queue properties, BOQUEUE, and BOTHRESH.

Parent topic: Writing XMS applications