1 Reply Latest reply on Oct 13, 2009 8:46 AM by Claus Ibsen

    How to stop execution of the current route

    Gerhard van Staden Newbie

      Good day.

       

      What's the correct way to intercept/halt/restart a running route?

       

      Here's my situation.

       

      The route start by means of a timer, then a sql query returns a list of database entries that are converted to xml and sent to a JMS queue.

       

      However, in the case where the sql query does not return any database entries, I need to stop execution (DO NOT SEND EMPTY MESSAGE TO QUEUE) and start execution again on the next timer interval.

       

      I don't want to code by exception, because it interferes with my monitoring.

      What is the correct way of doing this?

       

      I am running Fuse ESB 4 and the logic is contained in an OSGI bundle.

       

      Regards

      G.