How to restart datasource after a db timeout in JBoss Fuse ?

Solution Unverified - Updated -

Issue

  • I am defining a datasource in my camel context when my bundle starts running. The database has an idle timeout that expires. The only way I have found to restart the datasource connection is by issuing the install of the bundle again. Is there any other way to restart a datasource in the in camel route if it detects the message that the datasource is down?

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.