You can define max-connections or min-connections for your datasource and can configure it.
Please confirm the wildfly version you are using or the EAP version.
You can let know for Jboss EAP 5.1 version and Jboss 7.2 EAP version app servers.
@Tarak, JBoss EAP 7.2 is not yet released.
<min-pool-size> - the minimum number of connections in the pool (default 0 - zero)
<max-pool-size> - the maximum number of connections in the pool (default 20)
Jboss EAP 5.1 version and Jboss EAP 7.1
The max-pool-size element indicates the maximum number of connections for a pool. No more connections will be created in each sub-pool. This defaults to 20.
My question was can i change the number of connections in the pool, if yes where can i change the count parameter.