Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A basic query with respect to using Message Selectors in JMS

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic