Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does a message selector work?

message Selector
0
Posted

How does a message selector work?

0

Location: http://www.jguru.com/faq/view.jsp?EID=1159 Created: Nov 19, 1999 Author: Jerry Smith (http://www.jguru.com/guru/viewbio.jsp?EID=9) As a JMS server receives messages from producing clients and evaluates which consuming client(s) it should forward each message to, the server applies a consumer’s selector to data in the message header. Messages that do not meet the selection criteria are not delivered to the consumer. A message selector uses SQL92 condition syntax, for example, session.createReceiver(queue, “DogBreed in (‘Newfoundland’, ‘Mastiff’)”); The “data” for selection criteria include certain message header fields, as well as properties attached to messages.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123