This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes A query about using Message Selectors option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "A query about using Message Selectors option" Watch "A query about using Message Selectors option" New topic
Author

A query about using Message Selectors option

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I am having a query about Message Selectors in JMS .

As per the docs it says that :

"Sometimes you don't want message consumers to receive every message sent by a sender or publisher. Instead you want to be able to filter received messages. The JMS API provides this facility through message selectors. The message consumer specifies which messages it is interested in. The JMS provider then selectively sends just those messages to the client."

I am confused about above explanation
My question is If we specify Message Selectors option :

1. " Are these Messages aren't picked up from Queue itself " ??

please advise .


Save India From Corruption - Anna Hazare.
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 631
My question is If we specify Message Selectors option : " Are these Messages aren't picked up from Queue itself " ??


what you you exactly mean by Q itself?

They are picked from Q if the selection criteria is matched, and not picked otherwise and are available for other subscribers to pick.

-P


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Praful , you mean to say that the Messages stay in Queue only , if the selection criteria isn't matched .
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

Ravi Kiran Pattu wrote:Thanks Praful , you mean to say that the Messages stay in Queue only , if the selection criteria isn't matched .


That is correct.

ram.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hay Ram you have helped once again . Thanks .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A query about using Message Selectors option