title: c# activeMQ Queue Listener only for Messages with specific Properties
body: <p>i need to set up a Solution to consume Messages via ActiveMQ NMS with the restriction of only take Queued Messages that contains specific Values in deticated Properties in the JMS Header (CUstom Properties). the Actual solution uses the simple consumer.Listener += ... Event. but if i understand the Listener correct, at this way the message will also consumed. 
  If i use the Browser i have to do Polling on my own and i need to setup a Loop for that?</p>
  
  <p>Is there a way to get informed on every Message arriving the Queue and not consume it already. But look into the JMS Header and than decide if to consume or not.</p>
  
  <p>The Background is the all Messages from differnt versioned DataGenerators will put there data in the same Queue and they should have different Consumers, based on some Fields in the JMS header. There is no Option to change that (restriction from Business).</p>
  
  <p>i hope u can help me.</p>