Make sense for me.
I make it work temporarily by incrementing a integer and trying to connect to the next arrayofhosts[integer].

Probablt, bunny has to proper parameter to handle it natively, like java amqp client.