if (m_messageMap != null)
{
for (Lookup.Iterator itr = m_messageMap.iterator(); itr.hasNext();)
{
Channel channel = (Channel)itr.next();
Sender sender = (Sender)channel.getSender().getInstance(m_context);
List list = (List)itr.getValue();
for (int i = 0, n = list.size(); i != n; ++i)
{
Object msg = list.get(i);
if (msg instanceof Envelope)
{
list.set(i, ((Envelope)msg).getMessage());
}
}
if (s_logger.isDebugEnabled())
{
s_logger.debug("Sending " + list.size() + " message(s) on channel \"" + channel.getName() + "\"");
}
sender.send(list);
}
}
if (bEndTx || m_transaction == null)
{