Hello,
JedisConnectionPool will reconnect/refresh the connection, but the application code must retry.
So your application code should:
* get the connection from the pool
* do the operations
* in case of exception (connection lost,fail-over),
* catch the exception,
* implement the retry policy (for example)
* get a new connection from the pool and retry
You can find a very basic logic here:
If you are using Spring you can probably implement something with the Spring Retry library. (I have not tested it myself yet)
PS: as you can see in the link below, the fact that Jedis does not provide automatic reconnect/retry is done on purpose to keep the lin as simple as possible:
Regards
Tug
@tgrall