Hello.

I use camel-2.0-M1, and I have a spring configuration like this :

<camel:camelContext xmlns="http://camel.apache.org/schema/spring"; id="test">
    <route>
        <from uri="direct:a"/>
        <to uri="mock:t1"/>
    </route>
</camel:camelContext>

and a method :

public static void main() throws Exception {

     ApplicationContext context = new FileSystemXmlApplicationContext(new
String[]{
                                                                                
                
"./config/test.xml"});

     CamelContext camelContext = (CamelContext)context.getBean("test");

     camelContext.stop();
     context.stop();
     context.close();
}

but when the method finished then application didn't finish.  (I can close
my application only with         System.exit(1) statement, but it's not
fine)

Can anybody help me ?

Thanks, Evgeny



-- 
View this message in context: 
http://www.nabble.com/stop-CamelContext-in-main%28%29-tp23424821p23424821.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to