Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

delay a message on a jms queue

 
Oly Diesel
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Problem:
a producer sends a message to the queue.
after this 15 minutes should be waited
before the consumer processes this messages
because it is known that some preconditional
background processes are guaranteed to be
done by then.

a) blocking a thread with sleep (illegal?) in the consumer seems
stupid.
b) doing this with a selector on the timestamp
seems to me to be an expensive task if possible at all.
c) ?
what is the correct and most efficient/performant
enterprise pattern to do that?

Regards,
Oly
 
Oly Diesel
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A helpful friend found something:

Weblogic has a proprietary API to do this (weblogic.jms.extensions.WLMessageProducer) sender).setTimeToDeliver(15000);

Oracle is said to have a similar API.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!