Finally got the connectionFactory working