in jpa-support/src/main/java/org/apache/aries/jpa/support/impl/EMSupplierImpl.java [68:85]
public EMSupplierImpl(String unitName, final EntityManagerFactory emf, Coordinator coordinator) {
this.unitName = unitName;
this.emf = emf;
this.coordinator = coordinator;
this.shutdown = new AtomicBoolean(false);
this.emSet = Collections.newSetFromMap(new ConcurrentHashMap<EntityManager, Boolean>());
final Bundle bundle = FrameworkUtil.getBundle(this.getClass());
if (bundle != null) {
final BundleContext bundleContext = bundle.getBundleContext();
this.tmTracker = new ServiceTracker<TransactionManager, TransactionManager>(bundleContext,
TransactionManager.class, null);
tmTracker.open();
}
else {
LOG.warn("Transaction manager will be not available.");
}
}