xetorthio/jedis — Issue #223: Problem using Jedis
Author: mcolombo
Created: 2011-11-03 19:08:46+00:00
State: open

Hi All,

I wanted to ask someone if my implementation of jedis is correct, in a simple multiplayer card game.

Basically, im creating 2 pools for each player, one for sending requests and another for receiving. So a match would consist of 4 jedis connections (2 for each player).
I tried creating only 1 pool for each player, but i get all sort of connection errors.

I create those pools statically before starting the match, and destroy them when finished.
Is this approch correct?

I get jedis errors several times, like "jedis has closed the connections", or "JedisService(269): java.lang.ClassCastException: [B ", in the middle of the game, randomly.

Sometimes works ok, sometimes it doesn't.

I can't find any documentation regarding this sort of implementation.

Any help would be much appreciated.

Thanks.
Mariano