How to set a connection timeout to an oracle database

Solution Verified - Updated -

Issue

  • How to set a connection timeout to an oracle JDBC connection
  • How to set a login timeout to an oracle JDBC connection
  • How to call javax.sql.CommonDataSource#setLoginTimeout(int seconds) via JBoss EAP datasource settings
  • it is taking too long for my connection request to fail

Environment

  • Red Hat JBoss Data Virtualization (JDV)
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x
  • Oracle JDBC/Database

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