简体   繁体   中英

Is it possible to route message based on header to particular Queue in Solace Message Router

Is it possible to route message based on header to particular Queue in Solace Message Router ?

Please give brief details.

Solace Message Router routes messages via topics.

You can publish a message to either:

  1. A topic (eg customer/uk/event/logon )
  2. Directly into a queue (eg uk_Queue )

Queues on the Solace Message Router can be configured to receive one or more topics. For example, the uk_Queue can be configured to spool messages that were published to both customer/uk/event/logon and customer/uk/event/logoff .

You can add an egress selector to consumers that are bound to a queue. With the egress selector, only messages with headers that matches the selector string will be delivered to the consumers. Note that this only applies to delivery of messages to the consumers only. Messages that match the configured topics on the queue will be spooled regardless of whether or not the consumer's selectors match the messages.

Alternatively, you can create a topic endpoint, which allows ingress selectors. Topic endpoints will receive messages that match both the configurable topic and the header fields that matches the configured ingress selector.

You might also be interested in looking at http://dev.solacesystems.com/get-started/java-tutorials/topic-queue-mapping_java/ which gives a brief introduction about topic to queue mappings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM