How to Re-connect to a Database on connection loss using org.apache.commons.dbcp.BasicDataSource?

Solution Verified - Updated -

Issue

  • Datasource connection lost
  • At nights our database team make an online backup that apparently makes the fuse to disconnect from the database for a moment
  • Usually the datasource reconnect itself to Ingres, but not always and that's our issue
  • I would like to know where and how I have to configure to make sure the datasource can reconnect after database failures or offline periods of time

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.