public XATransactionalResource(String servername){
  this.servername=servername;
  this.rootTransactionToSiblingMapperMap=new Hashtable<String,SiblingMapper>();
  if (servername.getBytes().length > 64 - MAX_LONG_LEN)   throw new RuntimeException("Max length of resource name exceeded: should be less than " + (64 - MAX_LONG_LEN));
  this.xidFact=new DefaultXidFactory();
  this.closed=false;
  this.weakCompare=false;
  this.compareAlwaysTrue=false;
}

public XATransactionalResource ( String servername ) { this . servername = servername ; this . rootTransactionToSiblingMapperMap = new Hashtable < String , SiblingMapper > ( ) ; if ( servername . getBytes ( ) . length > 64 - MAX_LONG_LEN ) throw new RuntimeException ( "Max length of resource name exceeded: should be less than " + ( 64 - MAX_LONG_LEN ) ) ; this . xidFact = new DefaultXidFactory ( ) ; this . closed = false ; this . weakCompare = false ; this . compareAlwaysTrue = false ; }
construct a new instance with a default xidfactory .
