Hi:
Well, I'm not sure, but there is a parameter called
poolMaximumCheckoutTime, that according to MyBatis documentation
poolMaximumCheckoutTime – This is the amount of time that a Connection
can be "checked out" of the pool before it will be forcefully
returned. Default: 20000ms (i.e. 20 seconds)
I don't know if this parameter is equal to validationInterval of JDBC
Connection Pool .
I'd got an error like yours if validationInterval is set to default
time ( 20 seconds ) and the database server is down randomly.
I tested to set a lower value ( 5 seconds ) and "Connection is
invalid" error was gone.
But the root of the problem was the database link connection, so I set
validationInterval to 20 seconds again ( by performance reasons )
> Thanks!
>
> --
> 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.
> For more options, visit
https://groups.google.com/d/optout.