1

I'm using a Spring Data Source bean to configure a JDBC connection.

What's the easiest way to have this return a bare, unpooled / unmanaged JDBC connection?

1 Answer 1

2

I think you are looking for org.springframework.jdbc.datasource.SimpleDriverDataSource this class is a very simple implementation of javax.sql.DataSource and doesn't implement connection pooling, instead it always returns a new connection.

You can find source code here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.