Hi all,

I'm not sure if my question should be posted in EJB-INTEREST or
JMS-INTEREST,
so I post it in both :-) and hope for the best.

Anyhow, here's what I'm trying to do.  I want to use async' message
consuming machanism (onMessage() from MessageListener) to
receive messages from a Queue.  I want to set my selector so that
it only receives messages that have been queued up in the queue for at least
5 minutes.

Is there anyway that I can set the <jms-message-selector> value
in the ejb-jar.xml descriptor for Message-Driven Beans to be something that
evaluated to system current time?  Meaning, if I have a
name/value pair in a message header like this "PublishingTime=990803495559"
(where 990803495559 if a long value from System.currentTimeMillis()),
can I set the seletor in a way that it only receives messages
that have PublishingTime >= system current time.  System current time
here is the real time that when the message arrives the queue.

Or is there a better way to accomplish this?

Thanks in advance for your help.

Trinh Nguyen

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to