Fix for: https://issues.apache.org/jira/browse/AMQ-3841 Make the call to adapter.getDestinations() only once.