Forum Stats

  • 3,758,210 Users
  • 2,251,354 Discussions
  • 7,870,110 Comments

Discussions

Postpone the consumption of a message

gtriant
gtriant Member Posts: 20
edited Sep 6, 2012 7:23AM in Java Message Service (JMS)
Hello,

Is there such a parameter or functionality or any way to specify that when you put a message in a queue, you want it not to be consumed before a certain period of time?

Thanks

Answers

  • gtriant wrote:

    Is there such a parameter or functionality or any way to specify that when you put a message in a queue, you want it not to be consumed before a certain period of time?
    Not in standard JMS.

    However some JMS providers (e.g. WebLogic) do offer this as a non-standard feature. Please see your product documentation to find out if such a feature exists for the JMS provider you are using. Note that applications which use such features will not be portable between different JMS providers.

    Nigel
  • linkin
    linkin Member Posts: 423
    There is a provision to pass parameter at the time of sending the message to queue.
    You can do this by using JMS Message Selectors.
    [try this|http://docs.oracle.com/javaee/1.4/tutorial/doc/JMS4.html]
  • linkin wrote:
    There is a provision to pass parameter at the time of sending the message to queue.
    You can do this by using JMS Message Selectors.
    [try this|http://docs.oracle.com/javaee/1.4/tutorial/doc/JMS4.html]
    You can't use message selectors to delay delivery of a message until a "certain period of time" has elapsed, which is what the original poster was asking for. If you think you can, please explain.

    Nigel
  • linkin
    linkin Member Posts: 423
    nigeldeakin wrote:
    You can't use message selectors to delay delivery of a message until a "certain period of time" has elapsed, which is what the original poster was asking for. If you think you can, please explain.
    I accept. But I did not said this.
    gtriant wrote:
    Is there such a parameter or functionality or any way to specify that when you put a message in a queue
    I am just responding on this basis that you can pass parameter.
This discussion has been closed.