Get the correct connection handle for AMQP