[ https://issues.apache.org/activemq/browse/CAMEL-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57514#action_57514 ]
Claus Ibsen commented on CAMEL-2460: ------------------------------------ Strange, after having run the unit test the example also outputs. I wonder if this was a one time incident or something strange happened? {code} davsclaus:~/Downloads/apache-camel-2.2.0-fuse-01-00/examples/camel-example-cafe$ mvn exec:java [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'exec'. [INFO] ------------------------------------------------------------------------ [INFO] Building Camel :: Example :: Cafe [INFO] task-segment: [exec:java] [INFO] ------------------------------------------------------------------------ [INFO] Preparing exec:java [INFO] No goals needed for project - skipping [INFO] [exec:java] [e.cafe.CafeRouteBuilder.main()] ObjectHelper WARN Cannot find class: org.apache.camel.util.jndi.ExampleBean [e.cafe.CafeRouteBuilder.main()] DefaultCamelContext INFO Apache Camel 2.2.0-fuse-01-00 (CamelContext:camel-1) is starting [e.cafe.CafeRouteBuilder.main()] DefaultCamelContext INFO JMX enabled. Using DefaultManagedLifecycleStrategy. [e.cafe.CafeRouteBuilder.main()] DefaultCamelContext INFO Started 5 routes [e.cafe.CafeRouteBuilder.main()] DefaultCamelContext INFO Apache Camel 2.2.0-fuse-01-00 (CamelContext:camel-1) started Camel thread 1: seda://coldDrinks?concurrentConsumers=2 prepared cold drink #1 for order #2: iced 2 shot ESPRESSO Camel thread 3: seda://hotDrinks?concurrentConsumers=3 prepared hot drink #1 for order #2: hot 4 shot CAPPUCCINO Camel thread 5: seda://hotDrinks?concurrentConsumers=3 prepared hot drink #2 for order #2: hot 2 shot MOCHA Camel thread 4: seda://hotDrinks?concurrentConsumers=3 prepared hot drink #3 for order #2: hot 4 shot LATTE ----------------------- Order #2 Iced ESPRESSO, 2 shots. Hot CAPPUCCINO, 4 shots. Hot MOCHA, 2 shots. Hot LATTE, 4 shots. ----------------------- [e.cafe.CafeRouteBuilder.main()] DefaultCamelContext INFO Apache Camel 2.2.0-fuse-01-00 (CamelContext:camel-1) is stopping [e.cafe.CafeRouteBuilder.main()] DefaultShutdownStrategy INFO Starting to graceful shutdown routes (timeout 300 seconds) [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: route1 shutdown complete. [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: route2 shutdown complete. [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: route3 shutdown deferred. [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: route4 shutdown deferred. [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: route5 shutdown complete. [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: route3 shutdown complete. [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: route4 shutdown complete. [e.cafe.CafeRouteBuilder.main()] DefaultShutdownStrategy INFO Graceful shutdown of routes completed in 0 seconds [e.cafe.CafeRouteBuilder.main()] DefaultInflightRepository INFO Shutting down with no inflight exchanges. [e.cafe.CafeRouteBuilder.main()] DefaultCamelContext INFO Apache Camel 2.2.0-fuse-01-00 (CamelContext:camel-1) stopped [INFO] ------------------------------------------------------------------------ {code} > The cafe example - When started it does not output any activity to the > console > ------------------------------------------------------------------------------- > > Key: CAMEL-2460 > URL: https://issues.apache.org/activemq/browse/CAMEL-2460 > Project: Apache Camel > Issue Type: Task > Components: examples > Affects Versions: 2.2.0 > Reporter: Claus Ibsen > Assignee: Willem Jiang > Priority: Minor > Fix For: 2.3.0 > > > http://camel.apache.org/cafe-example.html > The wiki page states that the client will output drinks prepared and whatnot. > But this is what I get when running it. > Wait for 30 sec before shutting down with ctrl + c > {code} > [pache.camel.spring.Main.main()] DefaultCamelContext INFO Apache > Camel 2.2.0-fuse-01-00 (CamelContext:camel) is starting > [pache.camel.spring.Main.main()] DefaultCamelContext INFO JMX > enabled. Using DefaultManagedLifecycleStrategy. > [pache.camel.spring.Main.main()] DefaultCamelContext INFO Started > 5 routes > [pache.camel.spring.Main.main()] DefaultCamelContext INFO Apache > Camel 2.2.0-fuse-01-00 (CamelContext:camel) started > ^C[ Thread-2] Main$HangupInterceptor INFO > Received hang up - stopping the main instance. > [ Thread-2] MainSupport INFO Apache > Camel 2.2.0-fuse-01-00 stopping > [ Thread-2] ClassPathXmlApplicationContext INFO Closing > org.springframework.context.support.classpathxmlapplicationcont...@bfc7be: > display name > [org.springframework.context.support.classpathxmlapplicationcont...@bfc7be]; > startup date [Thu Feb 11 08:27:03 CET 2010]; root of context hierarchy > [ Thread-2] DefaultListableBeanFactory INFO > Destroying singletons in > org.springframework.beans.factory.support.defaultlistablebeanfact...@342fd2: > defining beans > [aggregatorStrategy,orderSplitter,drinkRouter,waiter,barista,template,consumerTemplate,camel:beanPostProcessor,camel]; > root of factory hierarchy > [ Thread-2] DefaultCamelContext INFO Apache > Camel 2.2.0-fuse-01-00 (CamelContext:camel) is stopping > [ Thread-2] DefaultShutdownStrategy INFO > Starting to graceful shutdown routes (timeout 300 seconds) > [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: > route1 shutdown complete. > [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: > route2 shutdown complete. > [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: > route3 shutdown deferred. > [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: > route4 shutdown deferred. > [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: > route5 shutdown complete. > [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: > route3 shutdown complete. > [ Camel thread 6: ShutdownTask] DefaultShutdownStrategy INFO Route: > route4 shutdown complete. > [ Thread-2] DefaultShutdownStrategy INFO > Graceful shutdown of routes completed in 0 seconds > [ Thread-2] DefaultInflightRepository INFO > Shutting down with no inflight exchanges. > [ Thread-2] DefaultCamelContext INFO Apache > Camel 2.2.0-fuse-01-00 (CamelContext:camel) stopped > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.