It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes JMS message selector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS message selector" Watch "JMS message selector" New topic

JMS message selector

Anuj Singhal

Joined: Oct 17, 2003
Posts: 25
My application has JMS selector similiar to one mentioned below:
NumberOfOrders = 1

I understand that a message will be picked up by the JMS client, if property value of "NumberOfOrders" in JMS message is set to 1.
But, i am not sure what will happen if "NumberOfOrders" property is not added to the JMS message.
Probably, selector condition will resolve to "null > 1" in above case and message will not be picked up by JMS client.
Has someone tested this before?
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

Can you go into more detail about what you are doing? I have no idea what example you're referring to.

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: JMS message selector
jQuery in Action, 3rd edition