Hi I'm looking to understand how I can manage routes created via the @Consume
annotation as per the example below.

    import org.apache.camel.Consume;
    public class InventoryUpdater {
    
        @Consume(uri = "jms:messageLogger") 
        public void logMessage(String message) {
            log.info(message);
        }
     }


I've deployed an application with a similar consumer and it appears to work
ok (consumes messages of a queue); but I'd like to be able to start and stop
the route/consumer at will.  I can get access to the endpoint
"jms:messageLogger" via the SpringCamelContext getEndpoint(id), but I'm not
sure where to go from there.  there don't appear to be any routes defined in
the context and no access to the JmsConsumer either.

Any advise/insights would be appreciated.

Cheers, Jeremy



--
View this message in context: 
http://camel.465427.n5.nabble.com/starting-and-stopping-routes-created-via-spring-and-Consume-tp5745973.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to