this.jtaDataSource = jtaDataSource;
}
protected static PersistenceUnitTransactionType getJPATransactionType(PersistenceUnitMetaData metaData)
{
TransactionType type = metaData.getTransactionType();
if (type == TransactionType.RESOURCE_LOCAL)
return PersistenceUnitTransactionType.RESOURCE_LOCAL;
else // default or actually being JTA
return PersistenceUnitTransactionType.JTA;
}