Datasoruce prefill does not work at start-up in JBoss EAP 7.1
Issue
The datasoruce connection pool prefill feature does not work at the start-up in JBoss EAP 7.1.
I configured the following data source setting:
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" statistics-enabled="true">
<connection-url>jdbc:postgresql://localhost:5432/example</connection-url>
<driver>postgresql.jar</driver>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>10</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>...</user-name>
<password>...</password>
</security>
</datasource>
with the above configuration, the connection pool is filled to <min-pool-size> at the start-up in EAP 7.0.x. However, the pool is filled at the start-up in EAP 7.1.x.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.1.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
