How to customize NotifyFiles in SOA-P 5 ?
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:
- How to get the
NotifyFilesclass to log the timestamp to the file ? - In case of exception or error
NotifyFilesclass 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
