1 23 24 package com.sun.enterprise.management.model; 25 26 import javax.management.ObjectName ; 27 import java.util.Set ; 28 import com.sun.enterprise.transaction.monitor.JTAStatsImpl; 29 30 public class TransactionServiceMdl { 31 public TransactionServiceMdl(){ 32 } 33 34 public TransactionServiceMdl(String name){ 35 } 37 38 public void freeze() { 39 JTAStatsImpl.getInstance().freeze(); 40 } 41 public void unfreeze() { 42 JTAStatsImpl.getInstance().unfreeze(); 43 } 44 public void rollback(java.lang.String [] txids) { 45 for (int i = 0; i < txids.length; i++) 46 JTAStatsImpl.getInstance().rollback(txids[i]); 47 } 48 49 private String stringify(String [] txids) { 50 String ret = ""; 51 if(txids != null) { 52 for(int i = 0;i<txids.length;i++) { 53 ret += txids[i] + ","; 54 } 55 } 56 return ret; 57 } 58 } 59 | Popular Tags |