Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7905109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:20:27+00:00 2026-06-03T10:20:27+00:00

I would like to put messages onto a queue with a date/time as a

  • 0

I would like to put messages onto a queue with a date/time as a message property, and pull the message from the queue when that property meets a criteria with respect to the current date.

As an example, suppose that I want to consume the message at 3:00. My idea is to set the property to 3:00 and then have a message selector like event_timestamp <= CURRENT_TIMESTAMP.

I understand that the JMS API’s message selector is based on SQL, so I would like to use that in the way that I would query a database, where I might have a keyword like CURRENT_TIMESTAMP or NOW(), or the like. Is there anything similar in the message selector expression syntax, or another way to achieve this sort of result?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:20:32+00:00Added an answer on June 3, 2026 at 10:20 am

    As far as I know there is no functions available for selector in JMS specification. Maybe some exists in vendor specific implementation extensions but not in tibco according to the message selector reference.

    As the message selector is a fixed parameter for a specific MessageConsumer, you have to craft your selector string with current date (or whatever) and call Session.createConsumer, Session.createDurableSubscriber or Session.createBrowser each time this selector query changes.

    I recommend you keep the same connection and session for all your consumers to keep reasonable performance.

    Another option is to use a message browser to open messages’ property to compute your condition and then decide to consume it effectively if it matches but this idea is definitely a regular polling and it breaks messaging philosophy.

    I guess you post a message for processing in the future, after a defined timestamp. Maybe there is another way to implement your requirement thanks to message expiration. In general, a broker can be configured to move expired messages from queue A into another queue B, so it does the job for you: your consumer just listens for messages available on queue B after its expiration only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to put a time & date stamp on each row added
Imagine a user that would like to put a form on their website that
I would like to put a button on top of a Google Map next
I would like to put a placeholder into e.g. the footer.html and have it
I would like to put jQuery at the bottom of the body tag but
I would like to put a large variable definition in a separate file for
I would like to put my local OS X wordpress site in my ~users/Sites/public
I would like to put some extra merged cells for grouping reasons on the
we have a cache which I would like to put some transaction scopes around
I am building MVC application and would like to put caching in my application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.