camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Howe <tomh...@artcore.com>
Subject Stopping a route created using @consume
Date Mon, 08 Aug 2011 09:33:39 GMT
I have a bean that consumes from a queue a bit like this ...

@Component
@Scope(value="session")
public class MyConsumer {

   @Consume(uri = "activemq:myqueue")
   public void process(  @Body String body ) {
   ...
   }

   public void stop() {
    ..how to stop it?...
   }

}


How would I go about implementing a stop() method that stops the route?

Thanks, Tom

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message