> --
> You received this message because you are subscribed to the Google Groups
> "mybatis-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mybatis-user...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/mybatis-user/7e6e494e-9571-4624-8a63-8df59ae413b1%40googlegroups.com
> .
This behavior will be controlled by the pool manager you use, which in turn is usually determined by your runtime environment.
If you are using the default MyBatis connection pool, check the available parameters at
https://mybatis.org/mybatis-3/configuration.html
under Environments - POOLED. For example, poolMaximumActiveConnections will set an active connection count limit, while poolPingQuery
will test a connection before it is used. If this is not sufficient, you can use a different pool manager that meets your needs, and
configure MyBatis to access that pool via JNDI.
--
Guy Rouillier