[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » EJB and Other Java EE Technologies
 
RSS feed
 
New topic
Author

Force delay in message driven beans. Is it possible?

Pablo Fernandez
Greenhorn

Joined: Jan 12, 2010
Messages: 3

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
Messages: 4

You should use setTimeToDeliver(timeToDeliver), but the implementation depends on the JMS server.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Messages: 395

You should use setTimeToDeliver(timeToDeliver), but the implementation depends on the JMS server.


Is that api part of the jms spec? I think it is weblogic specific.

ram.

This message was edited 1 time. Last update was at by ramprasad madathil

Pablo Fernandez
Greenhorn

Joined: Jan 12, 2010
Messages: 3

ramprasad madathil wrote:
You should use setTimeToDeliver(timeToDeliver), but the implementation depends on the JMS server.


Is that api part of the jms spec? I think it is weblogic specific.

ram.


I found that it is weblogic specific, but I'm using jboss and got a way to do the same thing.
Something like this:



Anyway, thanks for your answers

pol
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » EJB and Other Java EE Technologies
 
RSS feed
 
New topic
replay challenge