Message pulling

27 views
Skip to first unread message

Dejan Bosanac

unread,
Jun 24, 2010, 12:07:56 PM6/24/10
to stomp...@googlegroups.com
Hi,

Stomp users often want to receive messages in a synchronous fashion; see if there's something in the queue and pick one messages (similar to receive() method in JMS).

Currently they're usually opting for window (prefetch) of 1 and unsubscribe immediately after ack.

What do you guys think of adding a feature like this for Stomp 2.0, to support better these kind of use cases?

The frame could be very similar to SUBSCRIBE one, e.g.

RECEIVE
destination: /queue/foo
ack: client
timeout: 1000
^@

which will cause the broker to send a message if there is one (within timeout) or send NULL (NOOP or whatever) otherwise.

We can even define this behavior for the SUBSCRIBE frame if window 0 is used.


Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net

Hiram Chirino

unread,
Jun 25, 2010, 12:20:40 PM6/25/10
to stomp...@googlegroups.com
+1
--
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/

Jeff Mesnil

unread,
Jun 29, 2010, 11:03:11 AM6/29/10
to stomp...@googlegroups.com

Ian Eccles

unread,
Jul 4, 2010, 10:43:43 PM7/4/10
to stomp-spec
+1
Reply all
Reply to author
Forward
0 new messages