how can i get one message only,but not listen for all the message

49 views
Skip to first unread message

cwb...@sina.com

unread,
Jan 4, 2012, 3:39:22 AM1/4/12
to stomp-spec
how can i get one message only,but not listen for all the
message ,just like IBM Websphere MQ's function:MQGET

Hiram Chirino

unread,
Jan 31, 2012, 8:18:30 AM1/31/12
to stomp...@googlegroups.com
Hi,

Sorry for the late reply.  The STOMP spec does not explicitly define a way to finely control the flow of messages of a subscription but implementations are free add extensions to support that functionality.  For example, the Apollo STOMP server has a "Subscription Flow Control" feature documented at:


It basically lets you setup a credit window when the subscription is first created. Adding a 'credit:1' header to your subscription will make Apollo behave like a Websphere MQ server in that it will only deliver one message at a time (until it gets acked).

On Wed, Jan 4, 2012 at 3:39 AM, cwb...@sina.com <cwb...@sina.com> wrote:
how can i get one message only,but not listen for all the
message ,just like IBM Websphere MQ's function:MQGET



--

Hiram Chirino

Software Fellow | FuseSource Corp.

chi...@fusesource.com | fusesource.com

skype: hiramchirino | twitter: @hiramchirino

blog: Hiram Chirino's Bit Mojo



Reply all
Reply to author
Forward
0 new messages