Package org.springframework.context.support

Examples of org.springframework.context.support.AbstractApplicationContext.stop()


            new ClassPathXmlApplicationContext(new String[]{"/META-INF/spring/camelContext.xml"});
        CamelContext camelContext = applicationContext.getBean("camelContext", CamelContext.class);
        assertNotNull("The camel context should not be null", camelContext);
        Thread.sleep(2000);       
        camelContext.stop();
        applicationContext.stop();
    }

}
View Full Code Here


        CamelContext camelContext = (CamelContext)applicationContext.getBean("myCamel");
        assertNotNull("The camel context should not be null", camelContext);

        Thread.sleep(2000);
        camelContext.stop();
        applicationContext.stop();       
    }

}
View Full Code Here

            CamelContext camelContext = (CamelContext)applicationContext.getBean("queue");
            assertNotNull("The camel context should not be null", camelContext);
   
            Thread.sleep(2000);
            camelContext.stop();
            applicationContext.stop();
        } finally {
            broker.stop();
        }
    }
View Full Code Here

            new ClassPathXmlApplicationContext(new String[]{"/META-INF/spring/camelContext.xml"});
        CamelContext camelContext = (CamelContext)applicationContext.getBean("camelContext");
        assertNotNull("The camel context should not be null", camelContext);
        Thread.sleep(2000);       
        camelContext.stop();
        applicationContext.stop();
    }

}
View Full Code Here

            new ClassPathXmlApplicationContext(new String[]{"/META-INF/spring/queueCamelContext.xml"});
        CamelContext camelContext = (CamelContext)applicationContext.getBean("camelContext");
        assertNotNull("The camel context should not be null", camelContext);
        Thread.sleep(2000);       
        camelContext.stop();
        applicationContext.stop();       
    }

}
View Full Code Here

    AbstractApplicationContext springContext =
                new ClassPathXmlApplicationContext("META-INF/spring/spring-camel-context.xml");

        springContext.start();
        Thread.sleep(10000);
        springContext.stop();

  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.