Encountering "java.sql.SQLException: Connection is not associated with a managed connection" when using Spring DataSourceUtils in JBoss EAP

Solution Unverified - Updated -

Issue

Encountering the below when using connections obtained from Spring's DataSourceUtils.getConnection(DataSource) API:

java.sql.SQLException: Connection is not associated with a managed connection.org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6@99999999

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
    • 6
  • Spring Framework 4.2

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