davsclaus opened a new pull request, #24741:
URL: https://github.com/apache/camel/pull/24741

   ## Summary
   
   _Claude Code on behalf of davsclaus_
   
   - **DefaultListenerContainerFactory**: `split(",")` on the `queues` option 
now trims each entry, consistent with `declareElements()`. Previously 
`queues=q1, q2` would make the listener subscribe to `" q2"` (leading space) 
while declaring `"q2"` — causing a mismatch at runtime.
   - **SpringRabbitPollingConsumer**: Rejects multiple comma-separated queues 
in `doInit()` with a clear error, since `RabbitTemplate.receive()` only accepts 
a single queue name. Also trims the queue name in `receive()`.
   
   ## Test plan
   
   - [x] `DefaultListenerContainerFactoryTest` — verifies queue names are 
trimmed after splitting `"myqueue, myotherqueue"`
   - [x] `SpringRabbitPollingConsumerTest` — verifies `doInit()` throws 
`IllegalArgumentException` for multi-queue config
   - [x] Full module test suite passes (6 tests, 0 failures)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to