2 Replies Latest reply on Aug 1, 2002 9:47 PM by schaefera

    StringMonitor, TimerAgent Confusion.

    joev

      I need to monitor a order status, if its gone 24hrs without a state change I want a notification (on an individual order basis). Could this be accomplished in JMX with a combination of the timer service and string monitors? I'm a newbie and want to make sure I'm not going down the wrong path, would I need to create seperate instances of StringMonitor-Time for each active order instance?

        • 1. Re: StringMonitor, TimerAgent Confusion.

          Yes, you would have to create an instance
          for each order.

          Regards,
          Adrian

          • 2. Re: StringMonitor, TimerAgent Confusion.
            schaefera

            Hi

            I would just create one Timer (first check if it already exists) and then add a "Notification" to the Timer service for each order with one repetition.
            When the notification is send and retrieved by the (also one, previously registered Notification Listener) it checks if the order state and if not changed then do whatever necessary (no String Monitor needed).

            ATTENTION: whenever a server is going down you will loose the notifications and therefore the listener will not be informed. So you maybe need a way to make it persistent and when the server boots again to reset the Timer service.

            Have fun - Andy