}
}
m_sentCounter.add(col.size());
UnitOfWork oldUOW = m_invocationContext.getUnitOfWork();
UnitOfWork uow = m_invocationContext.createUnitOfWork();
try
{
Metadata metadata = m_invocationContext.getMetadata();
Instance queue = (Instance)metadata.getMetaclass("SysQueue").invoke("getQueue", new Object[]{sQueueName});
queue.invoke("send", new Object[]{col});
uow.commit(true);
}
catch (Throwable t)
{
uow.rollback();
ObjUtil.rethrow(t);
}
finally
{
m_invocationContext.setUnitOfWork(oldUOW);