-
Type:
Bug
-
Status: Done
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
When you use AMQP JMS client to communicate with AMQ7 broker you can specify JMS selectors and receive only messages matching a specific selector. However, when connection is routed through interconnect, selectors are ignored and the client receives even messages that do not match selector.
Reproducer:
- configure broker to start AMQP acceptor on port 5555 (instead of default)
- run the attached reproducer against broker (it should pass)
- mvn clean test -DSelectorTest -Damqp.port=5555
- now configure interconnect so router so messages are routed through the router:
listener {host: 0.0.0.0port: amqpauthenticatePeer: nosaslMechanisms: ANONYMOUS}connector {name: brokerhost: localhostport: 5555role: route-container}autoLink {addr: test.queueconnection: brokerdir: out}autoLink {addr: test.queueconnection: brokerdir: in}address {prefix: test.queuewaypoint: yes} - now run reproducer again but connect through the router
- mvn clean test -DSelectorTest -Damqp.port=5672
- Test will receive also messages which does not match the selector (and the test will fail)