This document demonstrates how to filter JMS messages in Mule ESB based on JMS properties like priority and headers when using ActiveMQ. It shows how to configure Mule flows to send messages to an ActiveMQ queue with a custom priority of 9. It then shows how to consume messages from that same queue using a JMS selector to filter for only those messages with a priority of 9, ignoring others. Similarly, it explains how to filter messages based on a custom header property instead of priority.