{"id":1681,"date":"2012-08-15T01:00:00","date_gmt":"2012-08-15T01:00:00","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/2012\/10\/spring-jdbc-database-connection-pool-setup.html"},"modified":"2012-10-22T06:29:00","modified_gmt":"2012-10-22T06:29:00","slug":"spring-jdbc-database-connection-pool","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html","title":{"rendered":"Spring JDBC Database connection pool setup"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left\">\n<div style=\"text-align: justify\"><strong>Setting up JDBC Database Connection Pool in Spring framework<\/strong>              is easy for any Java application, just matter of changing few configuration in spring configuration file.If you are writing core java application and not running on any web or application server like               Tomcat               or                Weblogic,                Managing Database connection pool using <strong>Apache Commons DBCP<\/strong> and Commons Pool along-with Spring framework is nice choice but if you have luxury of having web server and managed J2EE Container, consider using <strong>Connection pool managed by J2EE server<\/strong> those are better option in terms of maintenance, flexibility and also help to prevent <a href=\"http:\/\/javarevisited.blogspot.com\/2012\/01\/tomcat-javalangoutofmemoryerror-permgen.html\">java.lang.OutofMemroyError:PermGen Space in tomcat<\/a> by avoiding loading of JDBC driver in web-app class-loader, Also keeping JDBC connection pool information in Server makes it easy to change or include settings for JDBC over SSL. In this article we will see <strong>how to setup Database connection pool in spring framework<\/strong> using Apache commons DBCP and               commons pool.jar<\/div>\n<p>This article is in continuation of my tutorials on spring framework and database like <a href=\"http:\/\/javarevisited.blogspot.com\/2011\/11\/ldap-authentication-active-directory.html\">LDAP Authentication in J2EE with Spring Security<\/a> and  <a href=\"http:\/\/javarevisited.blogspot.com\/2012\/03\/spring-security-example-tutorial-how-to.html\">manage session using Spring security <\/a> If you haven\u2019t read those article than you may find them useful.<\/p>\n<p><strong><u>Spring Example JDBC Database Connection Pool<\/u><\/strong><\/p>\n<div style=\"text-align: justify\"><strong>Spring framework<\/strong>              provides convenient               JdbcTemplate               class for performing all Database related operation. if you are not using Hibernate than using Spring&#8217;s               JdbcTemplate               is good option.               JdbcTemplate               requires a               DataSource               which is               javax.sql.DataSource               implementation and you can get this directly using <a href=\"http:\/\/javarevisited.blogspot.sg\/2012\/05\/what-is-bean-scope-in-spring-mvc.html\">spring bean<\/a> configuration or by using <strong>JNDI<\/strong> if you are using <a href=\"http:\/\/javarevisited.blogspot.sg\/2012\/05\/5-difference-between-application-server.html\">J2EE web server or application server<\/a> for managing Connection Pool. See <i>How to setup JDBC connection Pool in tomcat and Spring<\/i> for JNDI based connection pooling for more details. In order to setup               Data source               you will require following configuration in your               applicationContext.xml               (spring configuration) file:              <div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:xml\">\/\/Datasource connection settings in Spring\r\n&lt;bean id=\"springDataSource\" class=\"org.apache.commons.dbcp.BasicDataSource\" destroy-method=\"close\" &gt;\r\n  &lt;property name=\"url\" value=\"jdbc:oracle:thin:@localhost:1521:SPRING_TEST\" \/&gt;\r\n  &lt;property name=\"driverClassName\" value=\"oracle.jdbc.driver.OracleDriver\" \/&gt;\r\n  &lt;property name=\"username\" value=\"root\" \/&gt;\r\n  &lt;property name=\"password\" value=\"root\" \/&gt;\r\n  &lt;property name=\"removeAbandoned\" value=\"true\" \/&gt;\r\n  &lt;property name=\"initialSize\" value=\"20\" \/&gt;\r\n  &lt;property name=\"maxActive\" value=\"30\" \/&gt;\r\n&lt;\/bean&gt;\r\n\r\n\/\/Dao class configuration in spring\r\n&lt;bean id=\"EmployeeDatabaseBean\" class=\"com.test.EmployeeDAOImpl\"&gt;\r\n   &lt;property name=\"dataSource\" ref=\"springDataSource\"\/&gt;\r\n&lt;\/bean&gt;       \r\n            <\/pre>\n<div style=\"text-align: justify\">Below configuration of DBCP connection pool will create 20 database connection as initialSize is 20 and goes up to 30 Database connection if required as maxActive is 30. you can customize your database connection pool by using different properties provided by Apache DBCP library. Above example is creating connection pool with Oracle 11g database and we are using               oracle.jdbc.driver.OracleDriver               comes along with                             <strong>ojdbc6.jar or ojdbc6_g.jar , <\/strong>              to learn more about <a href=\"http:\/\/javarevisited.blogspot.sg\/2012\/04\/java-program-to-connect-oracle-database.html\">how to connect Oracle database from Java program<\/a> see the link.<\/div>\n<p><strong><u>Java Code for using Connection pool in Spring<\/u><\/strong><\/p>\n<div style=\"text-align: justify\">Below is <strong>complete code example of DAO class which uses Spring <\/strong>             <strong>JdbcTemplate<\/strong>              to execute SELECT query against database using database connection from Connection pool. If you are not initializing Database connection pool on start-up than it may take a while when you execute your first query because it needs to create certain number of SQL connection and then it execute query but once connection pool is created subsequent queries will execute faster.                                        <\/div>\n<pre class=\"brush:java\">\/\/Code for DAO Class using Spring JdbcTemplate\r\npackage com.test\r\nimport javax.sql.DataSource;\r\nimport org.log4j.Logger;\r\nimport org.log4j.LoggerFactory;\r\nimport org.springframework.jdbc.core.JdbcTemplate;\r\n\r\n\/**\r\n * Java Program example to use DBCP connection pool with Spring framework\r\n * @author Javin Paul\r\n *\/\r\npublic class EmployeeDAOImpl implements EmployeeDAO {\r\n\r\n    private Logger logger = LoggerFactory.getLogger(EmployeeDAOImpl.class);\r\n    private JdbcTemplate jdbcTemplate;\r\n\r\n    public void setDataSource(DataSource dataSource) {\r\n        this.jdbcTemplate = new JdbcTemplate(dataSource);\r\n    }\r\n\r\n    @Override\r\n    public boolean isEmployeeExists(String emp_id) {\r\n        try {\r\n            logger.debug(\"Checking Employee in EMP table using Spring Jdbc Template\");\r\n            int number = this.jdbcTemplate.queryForInt(\"select count(*) from EMP where emp_id=?\", emp_id);\r\n            if (number &gt; 0) {\r\n                return true;\r\n            }\r\n        } catch (Exception exception) {\r\n            exception.printStackTrace();\r\n        }\r\n        return false;\r\n    }\r\n}\r\n\r\n\r\n<\/pre>\n<div style=\"text-align: justify\"><strong>Dependency:<\/strong>\n<\/div>\n<div style=\"text-align: justify\">1. you need to include oracle driver jar like               ojdbc_6.jar               in you classpath.&nbsp;<\/div>\n<div style=\"text-align: justify\">2. Apache DBCP and commons pool jar in application classpath.                                        <\/div>\n<div style=\"text-align: justify\">\n<\/div>\n<div style=\"text-align: justify\">That&#8217;s all on <strong>how to configure JDBC Database connection pool in Spring framework<\/strong>. As I said its pretty easy using Apache DBCP library. Just matter of few configuration in spring               applicationContext.xml               and you are ready. If you want to configure <i>JDBC Connection pool on tomcat (JNDI connection pool)<\/i> and want to use in spring than see here.                                        <\/div>\n<div style=\"text-align: justify\">\n<\/div>\n<div style=\"text-align: justify\">\n<\/div>\n<div style=\"text-align: justify\"><strong><i>Reference: <\/i><\/strong><a href=\"http:\/\/javarevisited.blogspot.gr\/2012\/06\/jdbc-database-connection-pool-in-spring.html\">JDBC Database connection pool in Spring Framework \u2013 How to Setup Example<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> Javin Paul at the <a href=\"http:\/\/javarevisited.blogspot.gr\/\">Javarevisited<\/a> blog.<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few configuration in spring configuration file.If you are writing core java application and not running on any web or application server like Tomcat or Weblogic, Managing Database connection pool using Apache Commons DBCP and Commons Pool &hellip;<\/p>\n","protected":false},"author":251,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[491,30],"class_list":["post-1681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-jdbc","tag-spring"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring JDBC Database connection pool setup - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few configuration in spring\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring JDBC Database connection pool setup - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few configuration in spring\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-15T01:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-10-22T06:29:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Javin Paul\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Javin Paul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html\"},\"author\":{\"name\":\"Javin Paul\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40\"},\"headline\":\"Spring JDBC Database connection pool setup\",\"datePublished\":\"2012-08-15T01:00:00+00:00\",\"dateModified\":\"2012-10-22T06:29:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html\"},\"wordCount\":580,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"JDBC\",\"Spring\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html\",\"name\":\"Spring JDBC Database connection pool setup - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2012-08-15T01:00:00+00:00\",\"dateModified\":\"2012-10-22T06:29:00+00:00\",\"description\":\"Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few configuration in spring\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"spring-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/08\\\/spring-jdbc-database-connection-pool.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Spring JDBC Database connection pool setup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40\",\"name\":\"Javin Paul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"caption\":\"Javin Paul\"},\"description\":\"I have been working in Java, FIX Tutorial and Tibco RV messaging technology from past 7 years. I am interested in writing and meeting people, reading and learning about new subjects.\",\"sameAs\":[\"http:\\\/\\\/javarevisited.blogspot.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/javin-paul\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring JDBC Database connection pool setup - Java Code Geeks","description":"Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few configuration in spring","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html","og_locale":"en_US","og_type":"article","og_title":"Spring JDBC Database connection pool setup - Java Code Geeks","og_description":"Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few configuration in spring","og_url":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-08-15T01:00:00+00:00","article_modified_time":"2012-10-22T06:29:00+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Javin Paul","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Javin Paul","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html"},"author":{"name":"Javin Paul","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40"},"headline":"Spring JDBC Database connection pool setup","datePublished":"2012-08-15T01:00:00+00:00","dateModified":"2012-10-22T06:29:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html"},"wordCount":580,"commentCount":1,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["JDBC","Spring"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html","url":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html","name":"Spring JDBC Database connection pool setup - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2012-08-15T01:00:00+00:00","dateModified":"2012-10-22T06:29:00+00:00","description":"Setting up JDBC Database Connection Pool in Spring framework is easy for any Java application, just matter of changing few configuration in spring","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","width":150,"height":150,"caption":"spring-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2012\/08\/spring-jdbc-database-connection-pool.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Spring JDBC Database connection pool setup"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/dbfdaa2ce6e5fcb8b7b0b259a84fdb40","name":"Javin Paul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","caption":"Javin Paul"},"description":"I have been working in Java, FIX Tutorial and Tibco RV messaging technology from past 7 years. I am interested in writing and meeting people, reading and learning about new subjects.","sameAs":["http:\/\/javarevisited.blogspot.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/javin-paul"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/251"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=1681"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1681\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=1681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=1681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=1681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}