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

   _Claude Code on behalf of davsclaus_
   
   ## Summary
   
   Same bug as CAMEL-24069 (camel-spring-rabbitmq), but in camel-sjms.
   
   When `asyncConsumer=true` and an exchange fails after the listener returns 
(async completion), the failure was silently dropped because 
`EndpointMessageListener` called `endpoint.getExceptionHandler()` which is 
`null` by default, with no fallback.
   
   The fix uses `consumer.getExceptionHandler()` instead, which always has a 
default `LoggingExceptionHandler` (set by `DefaultConsumer` constructor). This 
matches the canonical pattern used by `DefaultConsumer.DefaultConsumerCallback` 
and other components like camel-pulsar.
   
   ## Changes
   
   - **`EndpointMessageListener.java`** (camel-sjms): Changed the async failure 
path from `endpoint.getExceptionHandler()` (nullable, no fallback) to 
`consumer.getExceptionHandler()` (always non-null)
   
   ## Test plan
   
   - [x] All existing tests pass (`mvn verify` — 4 tests, 0 failures)


-- 
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