Solved my own problem.

The problem was that I had two tests in the same JUint test.  And setUp()
gets called for each test, which attempted to start the jbi engine twice. 
So, the fix was to only start the engine once, by using static variables.

    protected static AbstractXmlApplicationContext testContext;
    protected static ServiceMixClient              testClient;

    protected void setUp() throws Exception
    {
        if ( testContext == null )
        {
            testContext = new ClassPathXmlApplicationContext(
"testservicemix.xml" );
            testClient  = (ServiceMixClient) getTestBean("testClient");
        }
    }

-- 
View this message in context: 
http://www.nabble.com/A-kernel-is-already-registered-with-the-name-servicemix-file-merchant-su-file6-tp17257711p17261327.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to