You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Sandeep@I2IT" <sa...@gmail.com> on 2010/03/21 03:22:29 UTC

JMS Receiving Messages Conditionally

Hello All,

    In my JMS application i want to receive messages from a queue only if
particular condition is true. otherwise wait until that condition becomes
true. A sender can send multiple messages within that timespan, the JMS
should store all those messages and forward them to receiver application
only if particular condition is true.....
-- 
View this message in context: http://old.nabble.com/JMS-Receiving-Messages-Conditionally-tp27973333p27973333.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: JMS Receiving Messages Conditionally

Posted by "Sandeep@I2IT" <sa...@gmail.com>.

thanks but i want to receive those messages also whose condition will be
true after some time. Actually i want to send e-mails so before sending
request to directly SMTP server i m sending all my mails as Message to a
queue then in background i m checking for SMTP server status and according
to that i m returning the status. Now this status i want to use to receive
the messages on consumer side. 
   Finally i want 100% mail delivery in my application. 
-- 
View this message in context: http://old.nabble.com/JMS-Receiving-Messages-Conditionally-tp27973333p27973814.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: JMS Receiving Messages Conditionally

Posted by Tracy Snell <ts...@gmail.com>.
On Mar 20, 2010, at 10:22 PM, Sandeep@I2IT wrote:

>   In my JMS application i want to receive messages from a queue only if
> particular condition is true. otherwise wait until that condition becomes
> true. A sender can send multiple messages within that timespan, the JMS
> should store all those messages and forward them to receiver application
> only if particular condition is true.....

Easy, use selectors:

http://activemq.apache.org/selectors.html