Croway opened a new pull request, #30287: URL: https://github.com/apache/camel/pull/30287
JIRA: [CAMEL-27119](https://issues.apache.org/jira/browse/CAMEL-27119) - The request timeout of camel-jms and camel-sjms (`ReplyManagerSupport`) keeps its text and now says why the producer waited: the exchange is InOut (such as from an HTTP or REST consumer, a JMS message with a `JMSReplyTo`, or a `request` method of `ProducerTemplate`). It also says what to do: check that a consumer of the request destination replies, increase `requestTimeout`, or send with `exchangePattern=InOnly` or `disableReplyTo=true`. - `connectionFactory must be specified` now names the component and the endpoint, and says why the component did not autowire one: no `ConnectionFactory` bean, several beans (with their names, also in the DEBUG line), `allowAutoWiredConnectionFactory=false`, or a `transactionManager`. The autowiring does not change (`JmsComponent.doInit`, `JmsConfiguration.createConnectionFactory`). - A consumer with the `exceptionHandler` option now gives that handler the JMS exceptions of its listener container, such as a broker that cannot be reached, after the `exceptionListener` if one is set (`JmsEndpoint.configureListenerContainer`). Before, the option was not used. A handler that throws does not stop the reconnect attempts. This also applies to camel-activemq, camel-activemq6 and camel-amqp. - The `bridgeErrorHandler` error now reads "is not supported" and names `exceptionHandler` and `exceptionListener`. - Docs: the empty "Using a request timeout" section of the jms page now has content, plus a new "Connection errors of the consumer" section and a note on the connection factory error. `exchange-pattern.adoc` says which exchanges are InOut. Tests: `JmsInOutTimeoutMessageTest`, `JmsMissingConnectionFactoryTest`, `JmsConsumerExceptionHandlerTest` (camel-jms) and `InOutTimeoutMessageTest` (camel-sjms). On main, 10 of the 18 tests fail; the 8 controls (InOnly sends, single bean autowired, connection factory on the endpoint, exceptionListener alone, no listener without the options) pass. With the fix, all 18 pass. The camel-jms unit tests (542) and the camel-sjms request/reply tests (22) pass. Upgrade guide: "camel-jms - the exceptionHandler of a consumer gets the JMS exceptions of its listener container". _Claude Code on behalf of Federico Mariani_ -- 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]
