Package org.jboss.tm.usertx.interfaces

Examples of org.jboss.tm.usertx.interfaces.UserTransactionSession


         }
         else if( method.getName().equals("begin") )
         {
            // Begin a new transaction
            Integer timeout = (Integer) args[0];
            UserTransactionSession session = UserTransactionSessionImpl.getInstance();
            value = session.begin(timeout.intValue());
         }
         else if( method.getName().equals("destroy"))
         {
            /* We do nothing as the tx will timeout and the tx map is shared
            across all sessions as we have no association with the txs
            a given client has started.
            */
         }
         else
         {
            UserTransactionSession session = UserTransactionSessionImpl.getInstance();
            value = method.invoke(session, args);
         }
      }
      catch(InvocationTargetException e)
      {
View Full Code Here


/* 102 */         value = this.txProxy;
/*     */       }
/* 104 */       else if (method.getName().equals("begin"))
/*     */       {
/* 107 */         Integer timeout = (Integer)args[0];
/* 108 */         UserTransactionSession session = UserTransactionSessionImpl.getInstance();
/* 109 */         value = session.begin(timeout.intValue());
/*     */       }
/* 111 */       else if (!method.getName().equals("destroy"))
/*     */       {
/* 120 */         UserTransactionSession session = UserTransactionSessionImpl.getInstance();
/* 121 */         value = method.invoke(session, args);
/*     */       }
/*     */     }
/*     */     catch (InvocationTargetException e)
/*     */     {
View Full Code Here

TOP

Related Classes of org.jboss.tm.usertx.interfaces.UserTransactionSession

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.