Package nexj.core.runtime

Examples of nexj.core.runtime.UnitOfWork$Cached


            }
         }

         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);
View Full Code Here

TOP

Related Classes of nexj.core.runtime.UnitOfWork$Cached

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.