public boolean hasMessageListener(String destinationName) { Destination destination = _destinations.get(destinationName); if ((destination != null) && destination.isRegistered()) { return true; } else { return false; } }