How to customize NotifyFiles in SOA-P 5 ?

Solution Unverified - Updated -

Issue

When using the Notifier action with the NotifyFiles target:

    <action class="org.jboss.soa.esb.actions.Notifier" name="notificationAction">
      <property name="okMethod" value="notifyOK" />
      <property name="exceptionMethod" value="notifyError" />
      <property name="destinations">
        <NotificationList type="ok">
          <target class="NotifyConsole" />
          <target class="NotifyFiles">
            <file URI="okFile.txt" append="true" />
          </target>
        </NotificationList>

        <NotificationList type="err">
          <target class="NotifyConsole" />
          <target class="aaa.bbb.esb.CustomNotifyFTP">
            <file URI="errFile.txt" append="true" />
          </target>
        </NotificationList>
      </property>
    </action>
  • There are two questions:
  1. How to get the NotifyFiles class to log the timestamp to the file ?
  2. In case of exception or error NotifyFiles class is not logging the actual exception message to the file. It only logs the request message(esb Message) to the file. How can this be changed?

Environment

  • JBoss Enterprise Service Oriented Architecture Platform (SOA-P)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content