aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes A basic query with respect to using Message Selectors in JMS 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 "A basic query with respect to using Message Selectors in JMS" Watch "A basic query with respect to using Message Selectors in JMS" New topic
Author

A basic query with respect to using Message Selectors in JMS

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

When i am going MEssage Selectors topic in web , it seems very confusing for me .

Please clarify my query on this .

I have written a simple JMS Application based on Weblogic as my Queue .

I have two Java Files one for Message Producer and another file acting as Message Consumer using MDB

I have a basic TextMessage with some header properties in my Producer file .

Please tell me in what file should i put MessageSelector ??.

Thanks for reading .


Save India From Corruption - Anna Hazare.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

The producer sets a property on the message (which gets added to the message header).


The consumer uses a MessageSelector to receive messages based on the property values. For example to receive a mag with the above mentioned property value, use



ram.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A basic query with respect to using Message Selectors in JMS