[jboss-user] [JBoss Messaging] - How to empty a queue (even if it still delivering message)

florian lajus do-not-reply at jboss.com
Wed May 25 11:17:14 EDT 2011


florian lajus [http://community.jboss.org/people/hebus007] created the discussion

"How to empty a queue (even if it still delivering message)"

To view the discussion, visit: http://community.jboss.org/message/606993#606993

--------------------------------------------------------------
Hi,

I use a clustered queue to do load balancing on my cluster of server. For each message that my messageListeners (server side) receive I add/update a line in a database. A "job" of a client can consist to send a number of message in the queue which can be quite huge (around 10.000 in 1 minutes).
The problem is that the client have to be able to stop the current job.

Of course,I've thought to create listeners which do nothing after the "stop signal" of the client. But it's not possible as the time to consume those messages could be quite long

So, is it possible to empty a queue even if it still delivering messages?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/606993#606993]

Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110525/bd41e117/attachment.html 


More information about the jboss-user mailing list