3 Replies Latest reply on Dec 18, 2009 4:45 AM by thomas.diesler

    Resolving a bundle in start() breaks ServiceMix

    thomas.diesler

      Ales, could you please document comprehensively in javadoc how this ServiceMix stuff is supposed to work.

       

      This code required by the TCK breaks the ServiceMix tests

       

            // If this bundle's state is not RESOLVED, an attempt is made to resolve this bundle. If the Framework cannot resolve this bundle,
            // a BundleException is thrown.
            if (getState() != Bundle.RESOLVED)
            {
               try
               {
                  getBundleManager().resolveBundle(this, true);
               }
               catch (RuntimeException ex)
               {
                  throw new BundleException("Cannot resolve bundle: " + this, ex);
               }
            }

       

      I put the test in the surefire exclude list.