|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
StompJMS
Stomp JMS BindingsWhen using the Stomp Protocol with StompConnect or a JMS provider there are some additional Stomp headers and semantics which are useful to know. In terms of JMS semantics Stomp supports the same Ack Modes unless the messages are exchanged within a transaction via BEGIN/COMMIT/ABORT Standard JMS Message HeadersThe following standard JMS Headers are mapped to Stomp as follows; so these headers can be added to a SEND command when sending messages
Subscription headersYou can use an SQL 92 selector whenever you subscribe using the selector header selector:location = 'London' and sex = 'M' When subscribing for a topic you can specify the header no-local:true
This will disable local messages. Namely messages published over the Stomp connection will not be received by this topic subscription. Durable Topic SubscribersIf you wish to create a durable topic subscriber you will need to do the following
The combination of the client-id and durable-subscriber-name uniquely identifies the durable topic subscription. i.e. after you restart your program and re-subscribe, the Broker will know which messages you need that were published while you were away |
||||||||||||||||||||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
||||||||||||||||||||||