/** * Invokes {@code setDefaultDestination(MessageChannel)} - provided for backward compatibility. * * @param channel the channel to set. */ public void setDefaultChannel(MessageChannel channel) { super.setDefaultDestination(channel); }
/** * Create a MessagingTemplate with the given default channel. * * @param defaultChannel the default {@link MessageChannel} for {@code send} operations */ public MessagingTemplate(MessageChannel defaultChannel) { super.setDefaultDestination(defaultChannel); }