>Can't you use a static array to keep them.
Could you elaborte more on the static array approach?
I have an array presently to hold all different connection strings but I would say it is not a static array. But, the prime goal here would be to have an identifier so I would know that if the current connection used is 47, than the next hit should use connection 48 and so on. So, I need some kind of mechanism that would apply a lock at the hit level just to make sure that two simultaneous connection do not use the same connection.