Receiving Messages REST Endpoints

Receiving Messages

Clients receive messages by using a session to create a consumer.  A session can have multiple consumers.  Consumers persist until they are closed, or the session in which they were created is closed.

A consumer defines how messages are received from the service.  A consumer must specify the destination from which messages are received.

Optionally, consumers can specify a subset of messages to be received by giving a selector.  For the syntax of selectors, see the Message Selectors section of the Java API reference for the javax.jms.Message class at the URL: javax.jms.Messageclass.

Create a Consumer
Method: put
Path: /consumers/{consumerName}
Delete a Consumer
Method: delete
Path: /consumers/{consumerName}
Receive a Message
Method: post
Path: /consumers/{consumerName}/messages