In this post you will see how to send Email Notifications from your Oracle MFT.
Sending Email notification after successful transfer or failure is a common requirement in any projects.
Even Oracle MFT provides the feature to send the notification to users.
To notify specific users about events, you configure notifications using WLST commands for Oracle Managed File Transfer, and then you configure the email or SMS driver. Notifications event types are as follows:
RUNTIME_ERROR_EVENT — Errors during events such as message processing, server start-up, source error, or system event failure error.
DELETE_ARTIFACT_EVENT — Deletion of a transfer, source, or target.
DEPLOY_ARTIFACT_EVENT — Deployment of a transfer, source, or target.
EXPORT_IMPORT_EVENT — Import or export of the MFT configuration.
PURGE_EVENT — Purging of runtime transfer instances or transfer payloads.
ARCHIVE_RESTORE_EVENT — Archiving or restoring of runtime transfer instances or transfer payloads.
All notification messages are sent to JMS MFTExceptionQueue, whether or not they are enabled or there are contacts to be notified.
Here I am providing the high level steps for configuring Email notification in Oracle MFT.
Login to UNIX box, navigate to the below path and run the commands.
addContactToNotification(‘RUNTIME_ERROR_EVENT’, ‘Email’, ’firstname.lastname@example.org’)
In this step we will configure the email driver in oracle em console.
Login to EM console ,.
Expand the User Messaging Service node.
Expand the usermessagingdriver-email node.
Select the node for the Oracle WebLogic Server managed server dedicated for Oracle Managed File Transfer. For example, this node might be named usermessagingdriver-email (mft_server1).
In the usermessagingdriver-email page, select User Messaging Email Driver > Email Driver Properties to open the Email Driver Properties page.
It will open the below page , click on create to create the email driver.
On the Email Driver Properties page, enter values for your mail server for the following (mandatory) Outgoing and (optional) Incoming Mail Server properties:
Restart the Oracle Managed File Transfer server to reflect the changes.
Now open any of your Transfers and go to Targets and click on “Post Processing actions”
Select the “Transfer Notification” and click on Add to List.
Click on “Add or Update Contact to Notify”, select the user you have created in STEP1 and click on ADD.
That’s it , you’re done with setting up the notifications. Test the results.