1 Reply Latest reply on Sep 14, 2007 4:35 AM by kconner

    Using Notifier for Errors

    scoccera

      I've been trying to use Notifier in order to log both successful and unsuccessful use of a series of actions. Looking at the configuration below, after the firstAction and secondAction are executed successfully, the notifier will make an entry in the console:

      16:29:04,320 INFO [STDOUT] ConsoleNotifier 2007/09/13 04:29:04.320

      But if an exception occurs in the secondAction, an entry is never made in the console. Is there something else that is supposed to be setup?

      <actions>
       <action name="notificationAction" class="org.jboss.soa.esb.actions.Notifier">
       <property name="okMethod" value="notifyOK" />
       <property name="notification-details">
       <NotificationList type="ok">
       <target class="NotifyConsole"/>
       </NotificationList>
       <NotificationList type="err">
       <target class="NotifyConsole"/>
       </NotificationList>
       </property>
       </action>
       <action name="firstAction" class="com.whatever.FirstAction"/>
       <action name="secondAction" class="com.whatever.SecondAction"/>
      </actions>
      


        • 1. Re: Using Notifier for Errors
          kconner

          You need to specify the 'exceptionMethod' property as well as okMethod. The value should be notifyError.

          We should revisit this and tie it in with the action handling so that specifying okMethod/exceptionMethod is unnecessary for Notifier. I'll raise a task to address this.