As long as you plan to work together with the new aries jpa code there should be no need to track the TransactionManager or DataSource. The aries jpa 2.0 code will track both and automatically unpublish and close the EntityManagerFactory when one of the needed services goes away. So unless you keep additional references to OSGi services there should be no need to track them.
|