[jboss-user] [JBoss Messaging] - Re: Best practice for scheduled message processing
ataylor
do-not-reply at jboss.com
Tue Aug 19 11:20:46 EDT 2008
With JBM 1.4 it is possible to specify the earliest time that a message will be delivered. The user manual explains how to do this, but here you are anyway.
| long now = System.currentTimeMillis();
|
| Message msg = sess.createMessage();
|
| msg.setLongProperty(JBossMessage.JMS_JBOSS_SCHEDULED_DELIVERY_PROP_NAME,
| now + 1000 * 60 * 60 * 2);
|
| prod.send(msg);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171303#4171303
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171303
More information about the jboss-user
mailing list