

MaxActive: The maximum number of active connections that can be allocated from this pool at the same time.


So these connections will start when you start Tomcat service. InitialSize: The initial number of connections when the connection pool starts.As you can check it above we defined it on the Global Resource tab. It's quite easy to understand and configure this parameter but there are some key points that we need to talk about. We'll work on this sizing parameters but you can get all of them from the link.(The Tomcat JDBC Connection Pool) If you want to make the pool available for all web applications you have to define this configuration in context.xml file. Then you have to create a ResourceLink to make the pool available to the web applications. Configure Global Connection Pool File:conf/server.xmlįirst, you need to add your resource information to the Global resource tab. There are many ways to configure JDBC connection in Apache Tomcat.I'll focus one of them at this post. When the tomcat process reads "" it will automatically configure DBCP and the factory object will be used to create a connection pool. The first configuration that we notice "factory". We create a TestDB connection pool that connects the Oracle Database server. You can check a simple tomcat JDBC connection pool which added below. In this article, we 'll focus on creating a high-concurrency connection pool for Apache Tomcat.
