Longer reconnect delay with CXF JMS Transport 'retryInterval' does not seem to work

Solution Verified - Updated -

Issue

  • When using the JMS transport with CXF, quoting from the documentation:

`The JMS transport automatically reconnects when any JMS exceptions happen. The first exception will be logged with "Exception on JMS connection. Trying to reconnect" and the exception details.

Then CXF will try to reconnect every 5 seconds and log "Exception on reconnect. Trying again, attempt num x".`

  • This results in severe log spam and strain on the JMS broker when queues are not available due to outages, configuration errors, maintenance or whatever. In case of failed connection attempts we'd like to be able to configure a longer reconnect delay than the default of 5 seconds.

A similar issue has been discussed in CXF-6454, without any results in the standard release branches.

Environment

  • Red Hat JBoss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In