Package org.jboss.messaging.core.tx

Examples of org.jboss.messaging.core.tx.PreparedTxInfo


       * instead of direct Xids [JPL] */
     
      Connection conn = null;
      Statement st = null;
      ResultSet rs = null;
      PreparedTxInfo txInfo = null;
      TransactionWrapper wrap = new TransactionWrapper();
     
      try
      {
         List transactions = new ArrayList();
        
         conn = ds.getConnection();
        
         st = conn.createStatement();
        
         String sql = this.getSQLStatement("SELECT_PREPARED_TRANSACTIONS");
        
         rs = st.executeQuery(sql);
        
         while (rs.next())
         {
            //get the existing tx id --MK START
            long txId = rs.getLong(1);
           
            byte[] branchQual = getVarBinaryColumn(rs, 2);
           
            int formatId = rs.getInt(3);
           
            byte[] globalTxId = getVarBinaryColumn(rs, 4);
           
            Xid xid = new MessagingXid(branchQual, formatId, globalTxId);
           
            // create a tx info object with the result set detailsdetails
            txInfo = new PreparedTxInfo(txId, xid);
           
            transactions.add(txInfo);
         }
        
         return transactions;
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.tx.PreparedTxInfo

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.