Package org.jboss.tm.usertx.interfaces

Examples of org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory.newInstance()


         UserTransactionSessionFactory factory;
         Hashtable env = (Hashtable) NamingContextFactory.lastInitialContextEnv.get();
         InitialContext ctx = new InitialContext(env);
         factory = (UserTransactionSessionFactory) ctx.lookup("UserTransactionSessionFactory");
         // Call factory to get a UT session.
         session = factory.newInstance();
      }
      catch (Exception ex)
      {
         throw new RuntimeException("UT factory lookup failed", ex);
      }
View Full Code Here


         UserTransactionSessionFactory factory;
         Hashtable env = (Hashtable) NamingContextFactory.lastInitialContextEnv.get();
         InitialContext ctx = new InitialContext(env);
         factory = (UserTransactionSessionFactory) ctx.lookup("UserTransactionSessionFactory");
         // Call factory to get a UT session.
         session = factory.newInstance();
      }
      catch (Exception ex)
      {
         throw new RuntimeException("UT factory lookup failed", ex);
      }
View Full Code Here

/*     */     {
/* 345 */       Hashtable env = (Hashtable)NamingContextFactory.lastInitialContextEnv.get();
/* 346 */       InitialContext ctx = new InitialContext(env);
/* 347 */       UserTransactionSessionFactory factory = (UserTransactionSessionFactory)ctx.lookup("UserTransactionSessionFactory");
/*     */
/* 349 */       this.session = factory.newInstance();
/*     */     }
/*     */     catch (Exception ex)
/*     */     {
/* 353 */       throw new RuntimeException("UT factory lookup failed", ex);
/*     */     }
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.