immutant

http://immutant.org Note: dev discussion happens in #immutant on FreeNode IRC.
bja 2017-01-09T20:30:39.000237Z

is there a way to set the property Messaging.HDR_SCHEDULED_DELIVERY_TIME with publish?

2017-01-09T20:34:55.000238Z

@bja: you should be able to with (msg/publish q message :properties {"_HQ_SCHED_DELIVERY" (+ (System/currentTimeMillis) 5000)})

bja 2017-01-09T20:35:16.000239Z

sweet, thanks!

2017-01-09T20:36:08.000240Z

just be aware that there is some oddness around scheduled messages. IIRC, a listener has to be registered at the time the message is scheduled to be able to get it when it is delivered

2017-01-09T20:36:18.000241Z

but I could be wrong

2017-01-09T20:36:42.000242Z

let me know if you run in to any trouble

bja 2017-01-09T20:37:55.000243Z

I plan on testing it out. Looking for a lightweight way of delaying messages for up to an hour. SQS has a limit of 15 minutes, so next on the list was HornetQ

2017-01-09T20:39:50.000244Z

another option would be to send the messages via Quartz. you could use immutant.scheduling, and do (scheduling/schedule #(msg/publish q message) :in [5 :seconds]) which would work with SQS

2017-01-09T20:43:21.000245Z

@bja: ^

bja 2017-01-09T21:23:32.000246Z

hmm, that's an interesting option

bja 2017-01-09T21:23:34.000247Z

thanks!

2017-01-09T21:23:40.000248Z

my pleasure!