JMS2.0规范中文版

消息选择器

A JMS message selector allows a client to specify, by message header, the messages it’s interested in. Only messages whose headers and properties match the selector are delivered. The semantics of not delivered differ a bit depending on the MessageConsumer being used. See section 4.1.2 “Queue semantics” and 4.2.2 “Topic semantics” for more details. Message selectors cannot reference message body values. A message selector matches a message when the selector evaluates to true when the message’s header field and property values are substituted for their corresponding identifiers in the selector.

JMS消息选择器允许客户端指定,由消息头,它感兴趣的头和属性相匹配的选择器只传递消息的消息。未交付的语义差别有点视的MessageConsumer被使用。请参见4.1.2节“队列语义”和4.2.2“主题语义”的更多细节。 消息选择器不能引用消息体值。 消息选择当选择计算结果为true时,消息的头字段和属性值的选择取代其相应的标识符匹配的消息。