Code example for Properties

Methods: get

0
  } 
 
  public void setProperties(Properties props) throws SQLException, TransactionException {
    String utxName = null;
    try { 
      utxName = (String) props.get("UserTransaction");
      InitialContext initCtx = new InitialContext();
      userTransaction = (UserTransaction) initCtx.lookup(utxName);
    } catch (NamingException e) {
      throw new SqlMapException("Error initializing JtaTransactionConfig while looking up UserTransaction (" + utxName + ").  Cause: " + e);
    } 
  } 
 
}