[jboss-user] [JBoss Messaging] - Scheduled Messages not being cleared properly on a removeAll
mtpettyp
do-not-reply at jboss.com
Mon Nov 24 15:02:11 EST 2008
JBoss 4.2.3 and JBM 1.4.0.SP3
If I have a number of messages scheduled in the future and then call removeAllMessages() from the JMX Console on that queue, the messages are correctly removed. Both MessageCount and ScheduledMessageCount are set to zero. The messages are not sent at their scheduled time (as expected)
However, upon restarting the Application Server the scheduled messages that were deleted are requeued and processed. Looking through the code it appears that when removeAllMessages() is called only the in-memory scheduled messages are cleared. Upon startup those same messages are pulled out of the database and queued.
Is this the expected behaviour? I'm assuming that on a removeAllMessages the scheduled messages should be removed from the database.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191870#4191870
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191870
More information about the jboss-user
mailing list