When you use POJO @Consume etc then there is no routes.

You can use JMX to find the consumer mbean and control the consumer to
stop|start etc.



On Wed, Jan 15, 2014 at 6:23 AM, Jeremy Ashley <jeremy.ash...@gmail.com> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to