/** Initialization */ public static void setTransactionManager(TransactionManager tm) { txSynchs = new TransactionLocal(tm); }
private void initApplicationDataMap() { Map moduleData = ejbModule.getModuleDataMap(); synchronized(moduleData) { txDataMap = (TransactionLocal)moduleData.get(TX_DATA_KEY); if(txDataMap == null) { txDataMap = new TransactionLocal(); moduleData.put(TX_DATA_KEY, txDataMap); } } }
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException { super.readExternal(in); versionId = in.readLong(); this.updates = (ArrayList)in.readObject(); this.classname = (String)in.readObject(); try { InitialContext ctx = new InitialContext(); this.tm = (TransactionManager)ctx.lookup("java:/TransactionManager"); } catch (Exception ex) { throw new RuntimeException(ex); } this.txState = new TransactionLocal(); this.txVersion = new TransactionLocal(); this.methodMap = listMethodMap; }
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException { super.readExternal(in); versionId = in.readLong(); this.updates = (HashMap)in.readObject(); this.classname = (String)in.readObject(); try { InitialContext ctx = new InitialContext(); this.tm = (TransactionManager)ctx.lookup("java:/TransactionManager"); } catch (Exception ex) { throw new RuntimeException(ex); } this.txState = new TransactionLocal(); this.txVersion = new TransactionLocal(); this.methodMap = mapMethodMap; }
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException { super.readExternal(in); versionId = in.readLong(); this.updates = (HashSet)in.readObject(); this.classname = (String)in.readObject(); try { InitialContext ctx = new InitialContext(); this.tm = (TransactionManager)ctx.lookup("java:/TransactionManager"); } catch (Exception ex) { throw new RuntimeException(ex); } this.txState = new TransactionLocal(); this.txVersion = new TransactionLocal(); this.methodMap = setMethodMap; }
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException { super.readExternal(in); this.classname = (String)in.readObject(); this.fieldMap = (HashMap)in.readObject(); try { InitialContext ctx = new InitialContext(); this.tm = (TransactionManager)ctx.lookup("java:/TransactionManager"); } catch (Exception ex) { throw new RuntimeException(ex); } this.txState = new TransactionLocal(); }
/** * Create a new SubPoolContext. * * @param tm the transaction manager * @param mcf the managed connection factory * @param clf the connection listener factory * @param subject the subject * @param cri the connection request info * @param poolParams the pool parameters * @param jmcp the JBoss managed connection pool reference * @param log the log */ public SubPoolContext(TransactionManager tm, ManagedConnectionFactory mcf, ConnectionListenerFactory clf, Subject subject, ConnectionRequestInfo cri, PoolParams poolParams, JBossManagedConnectionPool jmcp, Logger log) { subPool = new InternalManagedConnectionPool(mcf, clf, subject, cri, poolParams, jmcp, this, log); if (tm != null) trackByTx = new TransactionLocal(tm); }