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 800039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:13:42+00:00 2026-05-14T23:13:42+00:00

I have created the application in which I need to configure the connection pool.In

  • 0

I have created the application in which I need to configure the connection pool.In which I am configuring the connection pooling in the spring_Config file. using the Basicdatasource.
but there is some problem to create the connection pool. Please tell me how to create the connection pooling in spring application using BasicDatasource.

I tried this one code in spring config ;-

bean id=”datasource” class=”org.apache.commons.dbcp.BasicDataSource”>

com.mysql.jdbc.Driver

jdbc:mysql:/revup?noAccessToProcedureBodies=true
jdbc:mysql://localhost:3306/revup?noAccessToProcedureBodies=true</value>–>

</value>–>

</value>–>

    <property name="poolPreparedStatements">
    <value>true</value>
    </property>
     <property name="initialSize">
        <value>2</value>
    </property>

    <property name="maxActive">
        <value>15</value>
    </property>

Is there any modification of code please tell me. thanks in advance.

  • 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-05-14T23:13:43+00:00Added an answer on May 14, 2026 at 11:13 pm

    Here’s a working example:

    <bean id="dataSourceApache" class="org.apache.commons.dbcp.BasicDataSource">
        <property name="url" value="jdbc:mysql://localhost:3306/coffee_shop" />
        <property name="username" value="john" />
        <property name="password" value="secret" />
        <property name="driverClassName" value="com.mysql.jdbc.Driver" />
    </bean>
    

    If you’re using Eclipse, you should also download support for XML configuration syntax. It really helps you alot.

    SpringSource Tool Suite has all the SpringSource support bundled ready for use.

    Else, you can see all the fields that’s possible to set in the Java documentation.

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

Sidebar

Related Questions

I have created a blog application using Ruby on Rails which includes the ability
I have created an application which needs to have a profile box tab which
We have created an application which we want to run in a 64 bit
i have created an application which show data from user current location. I want
I am new to this iphone development.I have created a tab bar application which
I have created a simple win 32 application..in which it has a textbox and
I have created an application for ContactsContract... I have created a spinner which brings
In iOS 5, I have created a splitViewController based application in which I have
I have an application where i have created a thread which must check the
I have asp.net application. and I have created mobile version of it which is

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.