Maybe a better way to view this questions is:

Is there a way to schedule the delivery of a message? For example, can you 
insert a message in a queue and say, delivery to the consumer after 2 hours?

I have searched around and I have not found any selector variable that can 
indicate the current time. 

I was thinking of a selector like:
JMSTimestamp <currentTimeMillis - 60000

where currentTimeMillis is a variable replaced by the current system time in 
miliseconds (i.e. like sysdate in Oracle). This selector would schedule 
delivery of every message to consumers one minute after the message has been 
inserted in the queue. 

Is there such a variable as currentTimeMillis? If not, I have to continually 
recreate the selector and update currentTimeMillis!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905087#3905087

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905087


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to