// Persistence Unit Transaction Type
if (transactionTypeEnv != null) {
try {
// Override with sys vars
PersistenceUnitTransactionType type = Enum.valueOf(PersistenceUnitTransactionType.class, transactionTypeEnv.toUpperCase());
unitInfo.setTransactionType(type);
} catch (IllegalArgumentException e) {
throw (IllegalArgumentException)(new IllegalArgumentException("Unknown " + TRANSACTIONTYPE_PROP + ", valid options are " + PersistenceUnitTransactionType.JTA + " or " + PersistenceUnitTransactionType.RESOURCE_LOCAL).initCause(e));
}
} else {
PersistenceUnitTransactionType type = Enum.valueOf(PersistenceUnitTransactionType.class, info.transactionType);
unitInfo.setTransactionType(type);
}
// Non JTA Datasource
String nonJtaDataSourceId = info.nonJtaDataSource;