[jboss-user] [JBoss Messaging] New message: "Rescheduling message delivery"

Sergey Gus do-not-reply at jboss.com
Fri Jan 22 04:54:16 EST 2010


User development,

A new message was posted in the thread "Rescheduling message delivery":

http://community.jboss.org/message/521656#521656

Author  : Sergey Gus
Profile : http://community.jboss.org/people/sergus

Message:
--------------------------------------------------------------
Hello all.
Need some help in managing delivery of messages to queue.
 
We have an application that sends messages to queue. For each message sent there is "JMS_JBOSS_SCHEDULED_DELIVERY" property set to indicate when the message should be delivered for processing. Here is code snippet:
 
...
message.setLongProperty("JMS_JBOSS_SCHEDULED_DELIVERY", System.currentTimeMillis() + 3 * 60 * 60 *  1000);
producer.send(message);
...
 
Most of the time the delivery of the message is scheduled for 3 hours after it is sent.
However, after the message has been sent, sometimes there is a need
1) To change delivery of the message to earlier or later time
2) To cancel message delivery i.e undo send operation
 
I've not found how this can be done neither from JMX console nor programatically.
 
Is there any way to accomplish these requirements?
 
Thank you on advance.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/521656#521656




More information about the jboss-user mailing list