RESTful MessagingThe main goal of this specification is to be able to exchange any type of content with a queue or topic endpoint through a simple protocol. This draft was originally written as a facade for JMS so many parts of it are not RESTful at all. We envision vast improvements (or even a complete rewrite) to the interface to make it more compact and a cleaner overall RESTful design. The idea with the first draft is to get ideas flowing.The RESTFul Interface for Queues
send
Response is 204 NO-CONTENT on success. All query parameters optional
Receive and consume a message
Wait is optional. Defaults to wait forever.
Browse
Returns HTML document with links to message you can view.
Dedicated Queue ReceiversDedicated queues receivers are JMS message consumers attached to a specific session.
Create a dedicated receiver that you can pull from.
If you pass an ACCEPT header this will create a JMS selector that filters message for only a specific media type. So, if you pass an ACCEPT header of 'application/xml' this receiver will only get message of CONTENT-TYPE 'application/xml'
Delete a dedicated receiver
Get the current message that is in the receiver's buffer. This does not consume/acknowledge the message
Acknowledge the current message that is in the receiver buffer.
FYI, this is idempotent still!
get and acknowledge from the receiver at the same time
Queue Message listenersYou can register a URI to post to when a message is sent to the queue. This registers a MessageListener with the queue. When the message is received, on the server, it send the message to the registered URI.
Create a message listener
You must send a string that is the URI you want to send the message to. The content-type can be anything, "text/plain" or whatever.
If you pass an ACCEPT header this will create a JMS selector that filters message for only a specific media type. So, if you pass an ACCEPT header of 'application/xml' this receiver will only get message of CONTENT-TYPE 'application/xml'
Delete the listenerThe RESTFul Interface for Topics
send
Response is 204 NO-CONTENT on success. All query parameters optional
Dedicated Topic ReceiversDedicated topic receivers are JMS message consumers attached to a specific session.
Create a dedicated receiver that you can pull from.
If you pass an ACCEPT header this will create a JMS selector that filters message for only a specific media type. So, if you pass an ACCEPT header of 'application/xml' this receiver will only get message of CONTENT-TYPE 'application/xml'
Delete a dedicated receiver
Get the current message that is in the receiver's buffer. This does not consume/acknowledge the message
Acknowledge the current message that is in the receiver buffer.
FYI, this is idempotent still!
get and acknowledge from the receiver at the same time
Topic Message listenersYou can register a URI to post to when a message is sent to this dedicated topic listener. This registers a MessageListener with the queue. When the message is received, on the server, it send the message to the registered URI.
Create a message listener
You must send a string that is the URI you want to send the message to. The content-type can be anything, "text/plain" or whatever.
If you pass an ACCEPT header this will create a JMS selector that filters message for only a specific media type. So, if you pass an ACCEPT header of 'application/xml' this receiver will only get message of CONTENT-TYPE 'application/xml'
Delete the listener
The RESTFul Interface for Durable Topics
send
Response is 204 NO-CONTENT on success. All query parameters optional
Dedicated Durable Topic ReceiversDedicated topic receivers are JMS message consumers attached to a specific session.
Create a dedicated receiver that you can pull from.
If you pass an ACCEPT header this will create a JMS selector that filters message for only a specific media type. So, if you pass an ACCEPT header of 'application/xml' this receiver will only get message of CONTENT-TYPE 'application/xml'
Delete a dedicated receiver
Get the current message that is in the receiver's buffer. This does not consume/acknowledge the message
Acknowledge the current message that is in the receiver buffer.
FYI, this is idempotent still!
get and acknowledge from the receiver at the same time
Topic Message listenersYou can register a URI to post to when a message is sent to this dedicated topic listener. This registers a MessageListener with the queue. When the message is received, on the server, it send the message to the registered URI.
Create a message listener
You must send a string that is the URI you want to send the message to. The content-type can be anything, "text/plain" or whatever.
If you pass an ACCEPT header this will create a JMS selector that filters message for only a specific media type. So, if you pass an ACCEPT header of 'application/xml' this receiver will only get message of CONTENT-TYPE 'application/xml'
Delete the listener
|
|
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2009 Google |