This abstract class describes the interface for defining protocol-specific adapters for sending messages via specific protocols.
Implementations must be designed for use in a multi-threaded environment.
542543544545546547548549550551552553554555556557558
try { if (recipient.getChannelName() != null) { if (!recipient.getChannelName().equals(currentChannel)) { currentChannel = recipient.getChannelName(); MessageChannel channel = (MessageChannel) CHANNEL_MAP.get(currentChannel); if (channel!= null) { try { MessageRecipients sendFailures = channel.send(message, recipients, replyTo); if (sendFailures != null) { RecipientInternals. addRecipients(failures,
604605606607608609610611612
* this session. */ public void invalidate() { Iterator i = CHANNEL_MAP.values().iterator(); while (i.hasNext()) { MessageChannel channel = (MessageChannel) i.next(); channel.close(); } }