-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
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.0 port: amqp authenticatePeer: no saslMechanisms: ANONYMOUS } connector { name: broker host: localhost port: 5555 role: route-container } autoLink { addr: test.queue connection: broker dir: out } autoLink { addr: test.queue connection: broker dir: in } address { prefix: test.queue waypoint: 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)