wood burning stoves 2.0*
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
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: 23
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: 3716

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

My Blog: Down Home Country Coding with Scott Selikoff
I agree. Here's the link: http://aspose.com/file-tools
subject: JMS message selector