List of usage examples for javax.persistence.spi PersistenceUnitInfo getJtaDataSource
public DataSource getJtaDataSource();
From source file:org.kuali.rice.krad.data.jpa.eclipselink.KradEclipseLinkEntityManagerFactoryBeanTest.java
private boolean isJtaEnabled() throws Exception { EntityManagerFactoryDelegate delegate = entityManagerFactory.unwrap(EntityManagerFactoryDelegate.class); PersistenceUnitInfo info = delegate.getSetupImpl().getPersistenceUnitInfo(); return info.getJtaDataSource() != null && info.getTransactionType() == PersistenceUnitTransactionType.JTA; }