Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7916247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:44:12+00:00 2026-06-03T14:44:12+00:00

I am currently looking at an application that uses Spring and Spring JDBC. http://static.springsource.org/spring/docs/2.0.x/reference/jdbc.html

  • 0

I am currently looking at an application that uses Spring and Spring JDBC.

http://static.springsource.org/spring/docs/2.0.x/reference/jdbc.html

I can’t find from the doc ways / where to configure settings such as set pool size, re-connection, test on borrow.

Am i missing something here? I am new to Spring. Is it that this plain vanilla JDBC option does not allow me to do what is described or is it that i would need something like c3po library?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:44:16+00:00Added an answer on June 3, 2026 at 2:44 pm

    These properties are not part of Spring but underlying DataSource implementation. First you have to include some database pooling library like dbcp:

    <dependency>
        <groupId>commons-dbcp</groupId>
        <artifactId>commons-dbcp</artifactId>
        <version>1.4</version>
    </dependency>
    

    Once you added this library you configure the provided DataSource implementation:

    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="username" value="user" />
        <property name="password" value="pwd" />
        <property name="url" value="some:url" />
        <property name="driverClassName" value="some.class.Driver" />
        <property name="initialSize" value="5" />
        <property name="maxActive" value="10" />
        <property name="testOnBorrow" value="true" />
        <property name="validationQuery" value="SELECT 1" />
    </bean>
    

    You can also choose different DataSource implementations like c3p0. Finally you can obtain DataSource configured in your application server, e.g. using jndi. Spring JDBC support uses any DataSource implementation provided. Also Spring ships with some very simple DriverManagerDataSource intended for testing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently looking into spliting a very long string that could contain HTML
I'm currently developing an application in C# that uses Amazon SQS The size limit
I currently have a listBox in a WP7 application that uses databinding to populate
We have a Java web application that uses Spring and Hibernate and has a
I have a Flex/Java web application that uses Maven as a build tool. Currently,
I'm currently building a Spring MVC application. I was looking to use JSP pages
I'm working on a web application that currently uses a Session to hold the
I'm looking for a working sample of an ASP.NET MVC web application that uses
I'm currently looking for a way to launch the default browser application on Android
Currently i am looking into making a bar chart in my WPF application. Although

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.