Force delay in message driven beans. Is it possible?
Pablo Fernandez
Greenhorn
Joined: Jan 12, 2010
Posts: 3
posted
0
Hi guys, can somebody help me with something?
When a message reaches the beginning of a queue, is it possible to force an X amount of time before it gets processed? I don't want to do it by coding into it, but I was wondering if the queue can be configured somehow.
I need to ensured a fixed amount of time between the moment the client transaction sends the message to the queue and the moment it actually gets processed.
Can it be done?
thanks in advance,
pol
domenico febbo
Greenhorn
Joined: Mar 24, 2009
Posts: 4
posted
0
You should use setTimeToDeliver(timeToDeliver), but the implementation depends on the JMS server.