Can the fix for this problem be as easy as changing the "start" method in
https://github.com/apache/aries/blob/trunk/transaction/transaction-manager/src/main/java/org/apache/aries/transaction/internal/Activator.java
by removing these 2 lines?

        // Make sure TransactionManager comes up even if no config admin is
installed
        updated(null);

My reasoning is that config admin is required for this bundle to have its
dependencies met as per the module's pom.xml which contains this:

        <aries.osgi.import>
            org.springframework.*;resolution:=optional;version="[2.5,5)",
            !org.apache.geronimo.transaction*,
            javax.resource.spi;resolution:=optional,
            org.osgi.framework,
            org.osgi.service.cm,            <-- 
            *
        </aries.osgi.import>

By removing those 2 lines from the start method, the transaction manager
won't be published until after the Activator's "updated" method is called.  

Am I missing something?

Thanks,
Marc








--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-x-startup-Aries-causing-components-to-deactivate-and-re-activate-multiple-times-tp4047996p4048174.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to