Examples of XASessionImpl


Examples of com.sun.messaging.jmq.jmsclient.XASessionImpl

      }
    } catch (Exception ee) {
      sessions_allowed = true; // false;
    }
   
    XASessionImpl xas;
    if (ResourceAdapter._isFixCR6760301()){
      // Override arguments
      xas = (XASessionImpl) xac.createSession(overrideTransacted(transacted),
          overrideAcknowledgeMode(acknowledgeMode), (inACC ? null : mc));
    } else {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

      {
         // remove unused session from user list and put this list at the end
         // threads of same user
         for (Iterator<SoftReference<XASessionImpl>> siter = joinedList.iterator(); siter.hasNext();)
         {
            XASessionImpl xaSession = siter.next().get();
            if (xaSession == null || !xaSession.isLive())
            {
               siter.remove();
            }
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

      {
         // traverse and remove unused sessions and given one
         // threads of same user
         for (Iterator<SoftReference<XASessionImpl>> siter = joinedList.iterator(); siter.hasNext();)
         {
            XASessionImpl xaSession = siter.next().get();
            if (xaSession == null || !xaSession.isLive() || xaSession == userSession)
            {
               siter.remove();
            }
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

   {
      List<SoftReference<XASessionImpl>> joinedList = txManagers.remove(userSession.getUserID());
      if (joinedList != null)
         for (SoftReference<XASessionImpl> sr : joinedList)
         {
            XASessionImpl xaSession = sr.get();
            if (xaSession != null && xaSession.isLive())
            {
               TransactionableDataManager txManager = xaSession.getTransientNodesManager().getTransactManager();
               txManager.commit();
            }
         }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

   {
      List<SoftReference<XASessionImpl>> joinedList = txManagers.get(userSession.getUserID());
      if (joinedList != null)
         for (SoftReference<XASessionImpl> sr : joinedList)
         {
            XASessionImpl xaSession = sr.get();
            if (xaSession != null && xaSession.isLive())
            {
               TransactionableDataManager txManager = xaSession.getTransientNodesManager().getTransactManager();
               txManager.start();
            }
         }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

   {
      List<SoftReference<XASessionImpl>> joinedList = txManagers.remove(userSession.getUserID());
      if (joinedList != null)
         for (SoftReference<XASessionImpl> sr : joinedList)
         {
            XASessionImpl xaSession = sr.get();
            if (xaSession != null && xaSession.isLive())
            {
               TransactionableDataManager txManager = xaSession.getTransientNodesManager().getTransactManager();
               txManager.rollback();
            }
         }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

      {
         // remove unused session from user list and put this list at the end
         // threads of same user
         for (Iterator<SoftReference<XASessionImpl>> siter = joinedList.iterator(); siter.hasNext();)
         {
            XASessionImpl xaSession = siter.next().get();
            if (xaSession == null || !xaSession.isLive())
            {
               siter.remove();
            }
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

      {
         // traverse and remove unused sessions and given one
         // threads of same user
         for (Iterator<SoftReference<XASessionImpl>> siter = joinedList.iterator(); siter.hasNext();)
         {
            XASessionImpl xaSession = siter.next().get();
            if (xaSession == null || !xaSession.isLive() || xaSession == userSession)
            {
               siter.remove();
            }
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

         try
         {
            while (i < joinedList.size())
            {
               SoftReference<XASessionImpl> sr = joinedList.get(i++);
               XASessionImpl xaSession = sr.get();
               if (xaSession != null && xaSession.isLive())
               {
                  xaSession.getTransientNodesManager().getTransactManager().commit();
               }
            }
         }
         catch (TransactionException e)
         {
            if (onePhase)
            {
               // rollback now
               boolean mixedCommit = i > 0;
               for (; i < joinedList.size(); i++)
               {
                  SoftReference<XASessionImpl> sr = joinedList.get(i);
                  XASessionImpl xaSession = sr.get();
                  if (xaSession != null && xaSession.isLive())
                  {
                     xaSession.getTransientNodesManager().getTransactManager().rollback();
                  }
               }
              
               if (mixedCommit)
               {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.XASessionImpl

      List<SoftReference<XASessionImpl>> joinedList = txResources.get(userSession.getUserID());
      if (joinedList != null)
      {
         for (SoftReference<XASessionImpl> sr : joinedList)
         {
            XASessionImpl xaSession = sr.get();
            if (xaSession != null && xaSession.isLive())
            {
               TransactionableDataManager txManager = xaSession.getTransientNodesManager().getTransactManager();
               txManager.start();
            }
         }
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.