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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content