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
NotifyFiles
class to log the timestamp to the file ? - 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.